hep.rootio.implementation
Class RootRandomAccessFile
- java.lang.Object
-
- java.io.RandomAccessFile
-
- hep.rootio.implementation.RootRandomAccessFile
-
-
Constructor Summary
Constructors Constructor and Description RootRandomAccessFile(java.io.File file, RootFileReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcheckLength(AbstractRootObject obj)voidclearMap()RootClassFactorygetFactory()longgetPosition()RootRandomAccessFilegetRAF()intreadArray(byte[] data)intreadArray(double[] data)intreadArray(float[] data)intreadArray(int[] data)java.lang.StringreadNullTerminatedString(int maxLength)RootObjectRepresentationreadObject(java.lang.String type)RootObjectRepresentationreadObjectRef()java.lang.StringreadString()intreadVersion()intreadVersion(AbstractRootObject obj)voidsetMap(int keylen)-
Methods inherited from 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
-
-
-
-
Constructor Detail
-
RootRandomAccessFile
public RootRandomAccessFile(java.io.File file, RootFileReader reader) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
readString
public java.lang.String readString() throws java.io.IOException- Specified by:
readStringin interfaceRootInput- Throws:
java.io.IOException
-
readNullTerminatedString
public java.lang.String readNullTerminatedString(int maxLength) throws java.io.IOException- Specified by:
readNullTerminatedStringin interfaceRootInput- Throws:
java.io.IOException
-
readVersion
public int readVersion() throws java.io.IOException- Specified by:
readVersionin interfaceRootInput- Throws:
java.io.IOException
-
readVersion
public int readVersion(AbstractRootObject obj) throws java.io.IOException
- Specified by:
readVersionin interfaceRootInput- Throws:
java.io.IOException
-
readArray
public int readArray(int[] data) throws java.io.IOException
-
readArray
public int readArray(byte[] data) throws java.io.IOException
-
readArray
public int readArray(float[] data) throws java.io.IOException
-
readArray
public int readArray(double[] data) throws java.io.IOException
-
checkLength
public void checkLength(AbstractRootObject obj) throws java.io.IOException
- Specified by:
checkLengthin interfaceRootInput- Throws:
java.io.IOException
-
getPosition
public long getPosition() throws java.io.IOException- Specified by:
getPositionin interfaceRootInput- Throws:
java.io.IOException
-
readObject
public RootObjectRepresentation readObject(java.lang.String type) throws java.io.IOException
- Specified by:
readObjectin interfaceRootInput- Throws:
java.io.IOException
-
readObjectRef
public RootObjectRepresentation readObjectRef() throws java.io.IOException
- Specified by:
readObjectRefin interfaceRootInput- Throws:
java.io.IOException
-
getFactory
public RootClassFactory getFactory()
- Specified by:
getFactoryin interfaceRootInput
-
getRAF
public RootRandomAccessFile getRAF()
-
clearMap
public void clearMap()
-
setMap
public void setMap(int keylen) throws java.io.IOException- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG