public class BinaryDocument extends javajs.util.BC implements JmolDocument
Modifier and Type | Field and Description |
---|---|
protected boolean |
isBigEndian |
protected boolean |
isRandom |
(package private) long |
nBytes |
(package private) javajs.util.OC |
out |
protected DataInputStream |
stream |
(package private) byte[] |
t8 |
Constructor and Description |
---|
BinaryDocument() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
javajs.util.SB |
getAllDataFiles(String binaryFileList,
String firstFile) |
void |
getAllDataMapped(String replace,
String string,
Map<String,String> fileData) |
long |
getPosition() |
private int |
ioRead(byte[] b,
int off,
int len) |
private byte |
ioReadByte() |
private double |
ioReadDouble() |
private int |
ioReadInt() |
private long |
ioReadLong() |
private short |
ioReadShort() |
byte |
readByte() |
int |
readByteArray(byte[] b,
int off,
int len) |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
int |
readIntLE() |
private int |
readLEInt() |
private long |
readLELong() |
long |
readLong() |
short |
readShort() |
String |
readString(int nChar) |
int |
readUnsignedShort() |
void |
seek(long offset) |
void |
setOutputChannel(javajs.util.OC out) |
void |
setRandom(boolean TF) |
void |
setStream(BufferedInputStream bis,
boolean isBigEndian) |
void |
setStreamData(DataInputStream stream,
boolean isBigEndian) |
int |
swapBytesI(int n) |
short |
swapBytesS(short n) |
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
byte[] t8
long nBytes
javajs.util.OC out
public void close()
close
in interface JmolDocument
public void setStream(BufferedInputStream bis, boolean isBigEndian)
setStream
in interface JmolDocument
public void setStreamData(DataInputStream stream, boolean isBigEndian)
setStreamData
in interface JmolDocument
public void setRandom(boolean TF)
public byte readByte() throws Exception
readByte
in interface JmolDocument
Exception
public int readByteArray(byte[] b, int off, int len) throws Exception
readByteArray
in interface JmolDocument
Exception
public String readString(int nChar) throws Exception
readString
in interface JmolDocument
Exception
public short readShort() throws Exception
readShort
in interface JmolDocument
Exception
public int readIntLE() throws Exception
readIntLE
in interface JmolDocument
Exception
public int readInt() throws Exception
readInt
in interface JmolDocument
Exception
public int swapBytesI(int n)
swapBytesI
in interface JmolDocument
public short swapBytesS(short n)
swapBytesS
in interface JmolDocument
public int readUnsignedShort() throws Exception
readUnsignedShort
in interface JmolDocument
Exception
public long readLong() throws Exception
readLong
in interface JmolDocument
Exception
public float readFloat() throws Exception
readFloat
in interface JmolDocument
Exception
public double readDouble() throws Exception
readDouble
in interface JmolDocument
Exception
public void seek(long offset)
seek
in interface JmolDocument
public long getPosition()
getPosition
in interface JmolDocument
public void setOutputChannel(javajs.util.OC out)
setOutputChannel
in interface JmolDocument
public javajs.util.SB getAllDataFiles(String binaryFileList, String firstFile)
getAllDataFiles
in interface JmolDocument
public void getAllDataMapped(String replace, String string, Map<String,String> fileData)
getAllDataMapped
in interface JmolDocument