|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
its.backbone.frame.ItsInputStream
Reads ITS data objects from an underlying
stream in network format. By definition, all ITS data
types know how to read themselves from this stream type
by implementing the abstract method ItsData.read.
ItsData.read(its.backbone.frame.ItsInputStream)| Nested Class Summary | |
static class |
ItsInputStream.ByteOrder
|
| Field Summary | |
static ItsInputStream.ByteOrder |
BIGENDIAN
|
protected java.io.DataInputStream |
dis
|
static ItsInputStream.ByteOrder |
INTELBYTEORDER
|
static ItsInputStream.ByteOrder |
LITTLEENDIAN
|
static ItsInputStream.ByteOrder |
NETWORKBYTEORDER
|
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
protected |
ItsInputStream(java.io.DataInputStream dis)
|
| Method Summary | |
static ItsInputStream |
create(byte[] byteInput)
further convenience routine, a byte array and an assumed byte ordering... |
static ItsInputStream |
create(byte[] byteInput,
ItsInputStream.ByteOrder bo)
convenience routine for create method above, where we supply a byte array rather than an input stream |
static ItsInputStream |
create(java.io.InputStream is)
|
static ItsInputStream |
create(java.io.InputStream is,
ItsInputStream.ByteOrder bo)
this is the public interface to this class. |
java.lang.String |
readAsciiString(int length)
Reads a fixed-length ASCII string, which may or may not be null-terminated. |
boolean |
readBoolean()
partial implementation of DataInput, just the parts which don't depend on the endianness of the data, i.e. non multi-byte numeric values |
byte |
readByte()
|
char |
readChar()
|
void |
readFully(byte[] b)
|
void |
readFully(byte[] b,
int off,
int len)
|
abstract int |
readInt(int byteCount)
|
static double |
readLEDouble(java.io.DataInput di)
Reads a double from a Little Endian (Intel) byte ordered source.. |
static float |
readLEFloat(java.io.DataInput di)
Reads a float from a Little Endian (Intel) byte ordered source.. |
static int |
readLEInt(java.io.DataInput di)
Reads an int from a Little Endian (Intel) byte ordered source.. |
static int |
readLEInt(java.io.DataInput di,
int byteCount)
Reads N (0 |
static long |
readLELong(java.io.DataInput di)
Reads a long from a Little Endian (Intel) byte ordered source.. |
static short |
readLEShort(java.io.DataInput di)
Reads a short from a Little Endian (Intel) byte ordered source.. |
static int |
readLEUnsignedShort(java.io.DataInput di)
|
java.lang.String |
readLine()
|
int |
readUnsignedByte()
|
abstract long |
readUnsignedInt()
|
abstract long |
readUnsignedInt(int byteCount)
|
java.lang.String |
readUTF()
|
int |
skipBytes(int n)
|
| Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.DataInput |
readDouble, readFloat, readInt, readLong, readShort, readUnsignedShort |
| Field Detail |
protected final java.io.DataInputStream dis
public static final ItsInputStream.ByteOrder BIGENDIAN
public static final ItsInputStream.ByteOrder NETWORKBYTEORDER
public static final ItsInputStream.ByteOrder LITTLEENDIAN
public static final ItsInputStream.ByteOrder INTELBYTEORDER
| Constructor Detail |
protected ItsInputStream(java.io.DataInputStream dis)
| Method Detail |
public static ItsInputStream create(java.io.InputStream is,
ItsInputStream.ByteOrder bo)
public static ItsInputStream create(java.io.InputStream is)
public static ItsInputStream create(byte[] byteInput,
ItsInputStream.ByteOrder bo)
public static ItsInputStream create(byte[] byteInput)
public java.lang.String readAsciiString(int length)
throws java.io.IOException
java.io.IOException
public boolean readBoolean()
throws java.io.IOException
readBoolean in interface java.io.DataInputjava.io.IOException
public byte readByte()
throws java.io.IOException
readByte in interface java.io.DataInputjava.io.IOException
public char readChar()
throws java.io.IOException
readChar in interface java.io.DataInputjava.io.IOException
public java.lang.String readLine()
throws java.io.IOException
readLine in interface java.io.DataInputjava.io.IOException
public int readUnsignedByte()
throws java.io.IOException
readUnsignedByte in interface java.io.DataInputjava.io.IOException
public java.lang.String readUTF()
throws java.io.IOException
readUTF in interface java.io.DataInputjava.io.IOException
public void readFully(byte[] b)
throws java.io.IOException
readFully in interface java.io.DataInputjava.io.IOException
public void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
readFully in interface java.io.DataInputjava.io.IOException
public int skipBytes(int n)
throws java.io.IOException
skipBytes in interface java.io.DataInputjava.io.IOException
public abstract int readInt(int byteCount)
throws java.io.IOException
java.io.IOException
public abstract long readUnsignedInt()
throws java.io.IOException
java.io.IOException
public abstract long readUnsignedInt(int byteCount)
throws java.io.IOException
java.io.IOException
public static int readLEInt(java.io.DataInput di)
throws java.io.IOException
java.io.IOException
public static int readLEInt(java.io.DataInput di,
int byteCount)
throws java.io.IOException
java.io.IOException
public static short readLEShort(java.io.DataInput di)
throws java.io.IOException
java.io.IOException
public static long readLELong(java.io.DataInput di)
throws java.io.IOException
java.io.IOException
public static int readLEUnsignedShort(java.io.DataInput di)
throws java.io.IOException
java.io.IOException
public static double readLEDouble(java.io.DataInput di)
throws java.io.IOException
java.io.IOException
public static float readLEFloat(java.io.DataInput di)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||