org.jmol.util
Class BinaryDocument
java.lang.Object
org.jmol.util.BinaryDocument
- Direct Known Subclasses:
- CompoundDocument
public class BinaryDocument
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stream
protected java.io.DataInputStream stream
isRandom
protected boolean isRandom
isBigEndian
protected boolean isBigEndian
nBytes
long nBytes
BinaryDocument
public BinaryDocument()
close
public void close()
setStream
public void setStream(java.io.BufferedInputStream bis,
boolean isBigEndian)
setStream
public void setStream(java.io.DataInputStream stream)
setRandom
public void setRandom(boolean TF)
readByte
public byte readByte()
throws java.lang.Exception
- Throws:
java.lang.Exception
readByteArray
public int readByteArray(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
readByteArray
public void readByteArray(byte[] b,
int off,
int len)
throws java.lang.Exception
- Throws:
java.lang.Exception
readString
public java.lang.String readString(int nChar)
throws java.lang.Exception
- Throws:
java.lang.Exception
readShort
public short readShort()
throws java.lang.Exception
- Throws:
java.lang.Exception
readInt
public int readInt()
throws java.lang.Exception
- Throws:
java.lang.Exception
readUnsignedShort
public int readUnsignedShort()
throws java.lang.Exception
- Throws:
java.lang.Exception
readLong
public long readLong()
throws java.lang.Exception
- Throws:
java.lang.Exception
readFloat
public float readFloat()
throws java.lang.Exception
- Throws:
java.lang.Exception
readDouble
public double readDouble()
throws java.lang.Exception
- Throws:
java.lang.Exception
readLEInt
private int readLEInt()
throws java.lang.Exception
- Throws:
java.lang.Exception
readLELong
private long readLELong()
throws java.lang.Exception
- Throws:
java.lang.Exception
seek
public void seek(long offset)
getPosition
public long getPosition()