public class DataAtomInputStream extends FilterInputStream
DataAtomInputStream.| Modifier and Type | Field and Description |
|---|---|
protected static long |
MAC_TIMESTAMP_EPOCH |
in| Constructor and Description |
|---|
DataAtomInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
byte |
readByte() |
double |
readFixed16D16()
Reads 32-bit fixed-point number divided as 16.16.
|
double |
readFixed2D30()
Reads 32-bit fixed-point number divided as 2.30.
|
double |
readFixed8D8()
Reads 16-bit fixed-point number divided as 8.8.
|
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
long |
readLong() |
Date |
readMacTimestamp()
Reads a 32-bit Mac timestamp (seconds since 1902).
|
String |
readPString() |
short |
readShort() |
String |
readType() |
int |
readUByte() |
long |
readUInt() |
int |
readUShort() |
long |
skipBytes(long n) |
available, close, mark, markSupported, read, read, read, reset, skippublic DataAtomInputStream(InputStream in)
public final byte readByte()
throws IOException
IOExceptionpublic final short readShort()
throws IOException
IOExceptionpublic final int readInt()
throws IOException
IOExceptionpublic final long readLong()
throws IOException
IOExceptionpublic final int readUByte()
throws IOException
IOExceptionpublic final int readUShort()
throws IOException
IOExceptionpublic final long readUInt()
throws IOException
IOExceptionpublic final long skipBytes(long n)
throws IOException
IOExceptionpublic final void readFully(byte[] b)
throws IOException
IOExceptionpublic final void readFully(byte[] b,
int off,
int len)
throws IOException
IOExceptionpublic Date readMacTimestamp() throws IOException
IOExceptionpublic double readFixed16D16()
throws IOException
IOExceptionpublic double readFixed2D30()
throws IOException
IOExceptionpublic double readFixed8D8()
throws IOException
IOExceptionpublic String readType() throws IOException
IOExceptionpublic String readPString() throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.