hep.rootio.implementation
Class RootInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.DataInputStream
-
- hep.rootio.implementation.RootInputStream
-
-
Constructor Summary
Constructors Constructor and Description RootInputStream(RootByteArrayInputStream in, RootRandomAccessFile raf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcheckLength(AbstractRootObject obj)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)voidsetPosition(long pos)-
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
-
-
-
Constructor Detail
-
RootInputStream
public RootInputStream(RootByteArrayInputStream in, RootRandomAccessFile raf)
-
-
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
-
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()
-
getPosition
public long getPosition()
- Specified by:
getPositionin interfaceRootInput
-
setPosition
public void setPosition(long pos)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG