- java.lang.Object
-
- java.io.RandomAccessFile
-
- com.ibm.jvm.format.TraceFile
-
- All Implemented Interfaces:
Closeable
,DataInput
,DataOutput
,AutoCloseable
public final class TraceFile extends RandomAccessFile
Encapsulates a trace "file" - In this case it is a single file on the disk.
-
-
Field Summary
Fields Modifier and Type Field Description protected BigInteger
lastWriteSystem
protected TraceFileHeader
traceFileHeader
protected long
wrapOffset
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
formatFileName()
TraceFileHeader
getHeader()
protected String
getNextFormatFileName(String previous)
protected String
getVMLevel()
protected BigInteger
readBigInteger(int size)
protected int
readI()
protected long
readL()
protected String
readString(int Length)
protected long
readULong()
protected void
setBigEndian(boolean endian)
-
Methods declared in class java.io.RandomAccessFile
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
-
-
-
Field Detail
-
traceFileHeader
protected TraceFileHeader traceFileHeader
-
lastWriteSystem
protected BigInteger lastWriteSystem
-
wrapOffset
protected long wrapOffset
-
-
Method Detail
-
readI
protected final int readI() throws IOException
- Throws:
IOException
-
readL
protected final long readL() throws IOException
- Throws:
IOException
-
readBigInteger
protected final BigInteger readBigInteger(int size) throws IOException
- Throws:
IOException
-
readULong
protected final long readULong() throws IOException
- Throws:
IOException
-
readString
protected final String readString(int Length) throws IOException
- Throws:
IOException
-
setBigEndian
protected final void setBigEndian(boolean endian)
-
formatFileName
protected final String formatFileName()
-
getVMLevel
protected final String getVMLevel()
-
getHeader
public final TraceFileHeader getHeader()
-
-