org.jmol.util
Class BinaryDocument
java.lang.Object
org.jmol.util.BinaryDocument
- Direct Known Subclasses:
- CompoundDocument, Pmesh.PmeshBinaryDocument
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
BinaryDocument
public BinaryDocument()
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 void readByteArray(byte[] b)
throws java.lang.Exception
- Throws:
java.lang.Exception
readByteArray
public void readByteArray(byte[] b,
int off,
int len)
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
readLong
public long readLong()
throws java.lang.Exception
- Throws:
java.lang.Exception
readFloat
public float readFloat()
throws java.lang.Exception
- Throws:
java.lang.Exception
readPoint3fArray
public void readPoint3fArray(javax.vecmath.Point3f[] data)
throws java.lang.Exception
- Throws:
java.lang.Exception
readLEInt
private int readLEInt()
throws java.lang.Exception
- Throws:
java.lang.Exception
seek
public void seek(long offset)