MetaTF API

MetaTF.Runtime
Class Record

java.lang.Object
  |
  +--MetaTF.Runtime.Record
Direct Known Subclasses:
Comment

public abstract class Record
extends java.lang.Object

Abstract superclass of all user-defined record classes Record provides: 1. write(TraceField, value) methods that understand interprations 2. putMetadata(writer, current section, tag, field, interpration [, values...]) methods that change a field's encoding before emitting the corresponding metadata record.

Version:
rel-1-2 ($Revision: 1.1 $, $Date: 2000/12/15 16:35:32 $),
Author:
Richard Jones

Constructor Summary
Record()
           
 
Method Summary
protected static void putMetadata(LowLevelWriter llw, int sectionNumber, int tag, int f, int i)
           
protected static void putMetadata(LowLevelWriter llw, int sectionNumber, int tag, int f, int i, long v)
           
protected static void putMetadata(LowLevelWriter llw, int sectionNumber, int tag, int f, int i, long v1, long v2)
           
protected static void putMetadata(LowLevelWriter llw, int sectionNumber, int tag, int f, int i, java.lang.String v)
           
abstract  void putRecord(LowLevelWriter llw)
          Write this record
protected  void write(LowLevelWriter llw, IndexTraceField tf, int v)
           
protected  void write(LowLevelWriter llw, NumTraceField tf, long v)
           
protected  void write(LowLevelWriter llw, StringTraceField tf, java.lang.String v)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Record

public Record()
Method Detail

putRecord

public abstract void putRecord(LowLevelWriter llw)
                        throws java.io.IOException
Write this record
Parameters:
llw - the writer
Throws:
java.io.IOException - IF the write fails

write

protected void write(LowLevelWriter llw,
                     NumTraceField tf,
                     long v)
              throws java.io.IOException

write

protected void write(LowLevelWriter llw,
                     IndexTraceField tf,
                     int v)
              throws java.io.IOException

write

protected void write(LowLevelWriter llw,
                     StringTraceField tf,
                     java.lang.String v)
              throws java.io.IOException

putMetadata

protected static void putMetadata(LowLevelWriter llw,
                                  int sectionNumber,
                                  int tag,
                                  int f,
                                  int i)
                           throws BadRecordException,
                                  java.io.IOException

putMetadata

protected static void putMetadata(LowLevelWriter llw,
                                  int sectionNumber,
                                  int tag,
                                  int f,
                                  int i,
                                  long v)
                           throws BadRecordException,
                                  java.io.IOException

putMetadata

protected static void putMetadata(LowLevelWriter llw,
                                  int sectionNumber,
                                  int tag,
                                  int f,
                                  int i,
                                  long v1,
                                  long v2)
                           throws BadRecordException,
                                  java.io.IOException

putMetadata

protected static void putMetadata(LowLevelWriter llw,
                                  int sectionNumber,
                                  int tag,
                                  int f,
                                  int i,
                                  java.lang.String v)
                           throws BadRecordException,
                                  java.io.IOException

MetaTF API

Copyright © 2001 - Richard Jones     MetaTF