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 JmolDocumentpublic void setStream(BufferedInputStream bis, boolean isBigEndian)
setStream in interface JmolDocumentpublic void setStreamData(DataInputStream stream, boolean isBigEndian)
setStreamData in interface JmolDocumentpublic void setRandom(boolean TF)
public byte readByte()
throws Exception
readByte in interface JmolDocumentExceptionpublic int readByteArray(byte[] b,
int off,
int len)
throws Exception
readByteArray in interface JmolDocumentExceptionpublic String readString(int nChar) throws Exception
readString in interface JmolDocumentExceptionpublic short readShort()
throws Exception
readShort in interface JmolDocumentExceptionpublic int readIntLE()
throws Exception
readIntLE in interface JmolDocumentExceptionpublic int readInt()
throws Exception
readInt in interface JmolDocumentExceptionpublic int swapBytesI(int n)
swapBytesI in interface JmolDocumentpublic short swapBytesS(short n)
swapBytesS in interface JmolDocumentpublic int readUnsignedShort()
throws Exception
readUnsignedShort in interface JmolDocumentExceptionpublic long readLong()
throws Exception
readLong in interface JmolDocumentExceptionpublic float readFloat()
throws Exception
readFloat in interface JmolDocumentExceptionpublic double readDouble()
throws Exception
readDouble in interface JmolDocumentExceptionpublic void seek(long offset)
seek in interface JmolDocumentpublic long getPosition()
getPosition in interface JmolDocumentpublic void setOutputChannel(javajs.util.OC out)
setOutputChannel in interface JmolDocumentpublic javajs.util.SB getAllDataFiles(String binaryFileList, String firstFile)
getAllDataFiles in interface JmolDocumentpublic void getAllDataMapped(String replace, String string, Map<String,String> fileData)
getAllDataMapped in interface JmolDocument