synergynetframework.appsystem.contentsystem.items.utils.vnc
Class InStream

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.utils.vnc.InStream
Direct Known Subclasses:
MemInStream, ZlibInStream

public abstract class InStream
extends java.lang.Object

The Class InStream.


Field Summary
static int maxStringLength
          The max string length.
 
Method Summary
 boolean bytesAvailable()
          Bytes available.
 void check(int itemSize)
          Check.
 int check(int itemSize, int nItems)
          Check.
 byte[] getbuf()
          Gets the buf.
 int getend()
          Gets the end.
 int getptr()
          Gets the ptr.
abstract  int pos()
          Pos.
 void readBytes(byte[] data, int offset, int length)
          Read bytes.
 int readOpaque16()
          Read opaque16.
 int readOpaque24A()
          Read opaque24 a.
 int readOpaque24B()
          Read opaque24 b.
 int readOpaque32()
          Read opaque32.
 int readOpaque8()
          Read opaque8.
 int readS16()
          Read s16.
 int readS32()
          Read s32.
 int readS8()
          Read s8.
 java.lang.String readString()
          Read string.
 int readU16()
          Read u16.
 int readU32()
          Read u32.
 int readU8()
          Read u8.
 void setptr(int p)
          Sets the ptr.
 void skip(int bytes)
          Skip.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxStringLength

public static int maxStringLength
The max string length.

Method Detail

bytesAvailable

public boolean bytesAvailable()
Bytes available.

Returns:
true, if successful

check

public final void check(int itemSize)
                 throws java.lang.Exception
Check.

Parameters:
itemSize - the item size
Throws:
java.lang.Exception - the exception

check

public final int check(int itemSize,
                       int nItems)
                throws java.lang.Exception
Check.

Parameters:
itemSize - the item size
nItems - the n items
Returns:
the int
Throws:
java.lang.Exception - the exception

getbuf

public final byte[] getbuf()
Gets the buf.

Returns:
the buf

getend

public final int getend()
Gets the end.

Returns:
the end

getptr

public final int getptr()
Gets the ptr.

Returns:
the ptr

pos

public abstract int pos()
Pos.

Returns:
the int

readBytes

public void readBytes(byte[] data,
                      int offset,
                      int length)
               throws java.lang.Exception
Read bytes.

Parameters:
data - the data
offset - the offset
length - the length
Throws:
java.lang.Exception - the exception

readOpaque16

public final int readOpaque16()
                       throws java.lang.Exception
Read opaque16.

Returns:
the int
Throws:
java.lang.Exception - the exception

readOpaque24A

public final int readOpaque24A()
                        throws java.lang.Exception
Read opaque24 a.

Returns:
the int
Throws:
java.lang.Exception - the exception

readOpaque24B

public final int readOpaque24B()
                        throws java.lang.Exception
Read opaque24 b.

Returns:
the int
Throws:
java.lang.Exception - the exception

readOpaque32

public final int readOpaque32()
                       throws java.lang.Exception
Read opaque32.

Returns:
the int
Throws:
java.lang.Exception - the exception

readOpaque8

public final int readOpaque8()
                      throws java.lang.Exception
Read opaque8.

Returns:
the int
Throws:
java.lang.Exception - the exception

readS16

public final int readS16()
                  throws java.lang.Exception
Read s16.

Returns:
the int
Throws:
java.lang.Exception - the exception

readS32

public final int readS32()
                  throws java.lang.Exception
Read s32.

Returns:
the int
Throws:
java.lang.Exception - the exception

readS8

public final int readS8()
                 throws java.lang.Exception
Read s8.

Returns:
the int
Throws:
java.lang.Exception - the exception

readString

public final java.lang.String readString()
                                  throws java.lang.Exception
Read string.

Returns:
the string
Throws:
java.lang.Exception - the exception

readU16

public final int readU16()
                  throws java.lang.Exception
Read u16.

Returns:
the int
Throws:
java.lang.Exception - the exception

readU32

public final int readU32()
                  throws java.lang.Exception
Read u32.

Returns:
the int
Throws:
java.lang.Exception - the exception

readU8

public final int readU8()
                 throws java.lang.Exception
Read u8.

Returns:
the int
Throws:
java.lang.Exception - the exception

setptr

public final void setptr(int p)
Sets the ptr.

Parameters:
p - the new ptr

skip

public final void skip(int bytes)
                throws java.lang.Exception
Skip.

Parameters:
bytes - the bytes
Throws:
java.lang.Exception - the exception