public class RootRandomAccessFile extends RandomAccessFile implements RootInput
Constructor and Description |
---|
RootRandomAccessFile(File file,
RootFileReader reader) |
Modifier and Type | Method and Description |
---|---|
void |
checkLength(AbstractRootObject obj) |
void |
clearMap() |
void |
dump()
For debugging
|
RootClassFactory |
getFactory() |
int |
getLast() |
long |
getPosition() |
int |
getRootVersion()
Returns the Root version which wrote this file
|
RootInput |
getTop()
Returns the RootInput at the top of top of the heirarchy of slices
|
int |
readArray(byte[] data) |
int |
readArray(double[] data) |
int |
readArray(float[] data) |
int |
readArray(int[] data) |
int |
readArray(short[] data) |
void |
readFixedArray(byte[] data) |
void |
readFixedArray(double[] data) |
void |
readFixedArray(float[] data) |
void |
readFixedArray(int[] data) |
void |
readFixedArray(long[] data) |
void |
readFixedArray(short[] data) |
void |
readMultiArray(Object[] array) |
String |
readNullTerminatedString(int maxLength) |
RootObject |
readObject(String type) |
RootObject |
readObjectRef() |
String |
readString() |
double |
readTwistedDouble()
Reads a double in strange byte order?
|
boolean[] |
readVarWidthArrayBoolean() |
byte[] |
readVarWidthArrayByte() |
double[] |
readVarWidthArrayDouble() |
float[] |
readVarWidthArrayFloat() |
int[] |
readVarWidthArrayInt() |
short[] |
readVarWidthArrayShort() |
int |
readVersion() |
int |
readVersion(AbstractRootObject obj) |
void |
setLast(int last) |
void |
setMap(int keylen) |
void |
setPosition(long pos) |
void |
skipObject()
For skipping uninterpretable objects
|
RootInput |
slice(int size)
Returns a new RootInput stream which represents a slice of this
RootInput stream.
|
RootInput |
slice(int inSize,
int outSize)
Slice and decompress
|
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
public RootRandomAccessFile(File file, RootFileReader reader) throws IOException
IOException
public RootClassFactory getFactory()
getFactory
in interface RootInput
public void setMap(int keylen) throws IOException
setMap
in interface RootInput
IOException
public void setPosition(long pos) throws IOException
setPosition
in interface RootInput
IOException
public long getPosition() throws IOException
getPosition
in interface RootInput
IOException
public int getRootVersion()
RootInput
getRootVersion
in interface RootInput
public RootInput getTop()
RootInput
public void checkLength(AbstractRootObject obj) throws IOException
checkLength
in interface RootInput
IOException
public int[] readVarWidthArrayInt() throws IOException
IOException
public byte[] readVarWidthArrayByte() throws IOException
IOException
public short[] readVarWidthArrayShort() throws IOException
IOException
public float[] readVarWidthArrayFloat() throws IOException
IOException
public double[] readVarWidthArrayDouble() throws IOException
IOException
public boolean[] readVarWidthArrayBoolean() throws IOException
IOException
public int readArray(int[] data) throws IOException
readArray
in interface RootInput
IOException
public int readArray(byte[] data) throws IOException
readArray
in interface RootInput
IOException
public int readArray(short[] data) throws IOException
readArray
in interface RootInput
IOException
public int readArray(float[] data) throws IOException
readArray
in interface RootInput
IOException
public int readArray(double[] data) throws IOException
readArray
in interface RootInput
IOException
public void readFixedArray(int[] data) throws IOException
readFixedArray
in interface RootInput
IOException
public void readFixedArray(long[] data) throws IOException
readFixedArray
in interface RootInput
IOException
public void readFixedArray(byte[] data) throws IOException
readFixedArray
in interface RootInput
IOException
public void readFixedArray(short[] data) throws IOException
readFixedArray
in interface RootInput
IOException
public void readFixedArray(float[] data) throws IOException
readFixedArray
in interface RootInput
IOException
public void readFixedArray(double[] data) throws IOException
readFixedArray
in interface RootInput
IOException
public void readMultiArray(Object[] array) throws IOException
readMultiArray
in interface RootInput
IOException
public String readNullTerminatedString(int maxLength) throws IOException
readNullTerminatedString
in interface RootInput
IOException
public RootObject readObject(String type) throws IOException
readObject
in interface RootInput
IOException
public RootObject readObjectRef() throws IOException
readObjectRef
in interface RootInput
IOException
public String readString() throws IOException
readString
in interface RootInput
IOException
public int readVersion() throws IOException
readVersion
in interface RootInput
IOException
public int readVersion(AbstractRootObject obj) throws IOException
readVersion
in interface RootInput
IOException
public RootInput slice(int size) throws IOException
RootInput
slice
in interface RootInput
size
- The size of the slice.IOException
public RootInput slice(int inSize, int outSize) throws IOException
RootInput
slice
in interface RootInput
IOException
public double readTwistedDouble() throws IOException
RootInput
readTwistedDouble
in interface RootInput
IOException
public void dump() throws IOException
RootInput
dump
in interface RootInput
IOException
public void skipObject() throws IOException
RootInput
skipObject
in interface RootInput
IOException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics