org.jmol.util
public class BinaryDocument extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
isBigEndian |
protected boolean |
isRandom |
(package private) long |
nBytes |
(package private) OutputStream |
os |
protected DataInputStream |
stream |
Constructor and Description |
---|
BinaryDocument() |
BinaryDocument(BufferedInputStream bis) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getPosition() |
private int |
ioRead(byte[] b,
int off,
int len) |
private byte |
ioReadByte() |
private double |
ioReadDouble() |
private float |
ioReadFloat() |
private int |
ioReadInt() |
private long |
ioReadLong() |
private short |
ioReadShort() |
byte |
readByte() |
void |
readByteArray(byte[] b) |
int |
readByteArray(byte[] b,
int off,
int len) |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
private int |
readLEInt() |
private long |
readLELong() |
long |
readLong() |
short |
readShort() |
String |
readString(int nChar) |
int |
readUnsignedShort() |
void |
seek(long offset) |
void |
setIsBigEndian(boolean TF) |
void |
setOutputStream(OutputStream os,
Viewer viewer,
double privateKey) |
void |
setRandom(boolean TF) |
void |
setStream(BufferedInputStream bis,
boolean isBigEndian) |
void |
setStream(DataInputStream stream) |
static int |
swapBytes(int n) |
static short |
swapBytes(short n) |
void |
writeBytes(byte[] b) |
void |
writeBytes(byte[] b,
int off,
int n) |
void |
writeInt(int i) |
void |
writeLong(long b) |
void |
writeShort(short i) |
protected DataInputStream stream
protected boolean isRandom
protected boolean isBigEndian
long nBytes
OutputStream os
public BinaryDocument()
public BinaryDocument(BufferedInputStream bis)
public void close()
public void setStream(BufferedInputStream bis, boolean isBigEndian)
public void setIsBigEndian(boolean TF)
public void setStream(DataInputStream stream)
public void setRandom(boolean TF)
public int readByteArray(byte[] b, int off, int len) throws Exception
Exception
public static int swapBytes(int n)
public static short swapBytes(short n)
public void seek(long offset)
public long getPosition()
public void setOutputStream(OutputStream os, Viewer viewer, double privateKey)