com.judoscript.util
Class JavaValueInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by com.judoscript.util.JavaValueInputStream
All Implemented Interfaces:
java.io.Closeable

public class JavaValueInputStream
extends java.io.FilterInputStream


Nested Class Summary
static class JavaValueInputStream.EOFException
           
 
Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
JavaValueInputStream(java.io.InputStream is)
           
 
Method Summary
static JavaValueInputStream createLittleEndian(java.io.InputStream is)
           
 int read()
           
 byte readByte(byte b)
           
 byte[] readBytes()
           
 char readChar()
           
 char[] readChars()
           
 java.util.Date readDate()
           
 java.util.Date[] readDates()
           
 double readDouble()
           
 double[] readDoubles()
           
 float readFloat()
           
 float[] readFloats()
           
 int readInt()
           
 int[] readInts()
           
 long readLong()
           
 long[] readLongs()
           
 short readShort()
           
 short[] readShorts()
           
 java.lang.String readString()
           
 java.lang.String[] readStrings()
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaValueInputStream

public JavaValueInputStream(java.io.InputStream is)
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
JavaValueInputStream.EOFException - We force this exception when -1 is returned because this is used to get specific values.
java.io.IOException

readByte

public byte readByte(byte b)
              throws java.io.IOException
Throws:
java.io.IOException

readShort

public short readShort()
                throws java.io.IOException
Throws:
java.io.IOException

readChar

public char readChar()
              throws java.io.IOException
Throws:
java.io.IOException

readInt

public int readInt()
            throws java.io.IOException
Throws:
java.io.IOException

readLong

public long readLong()
              throws java.io.IOException
Throws:
java.io.IOException

readFloat

public float readFloat()
                throws java.io.IOException
Throws:
java.io.IOException

readDouble

public double readDouble()
                  throws java.io.IOException
Throws:
java.io.IOException

readString

public java.lang.String readString()
                            throws java.io.IOException
Throws:
java.io.IOException

readDate

public java.util.Date readDate()
                        throws java.io.IOException
Throws:
java.io.IOException

readBytes

public byte[] readBytes()
                 throws java.io.IOException
Throws:
java.io.IOException

readShorts

public short[] readShorts()
                   throws java.io.IOException
Throws:
java.io.IOException

readChars

public char[] readChars()
                 throws java.io.IOException
Throws:
java.io.IOException

readInts

public int[] readInts()
               throws java.io.IOException
Throws:
java.io.IOException

readLongs

public long[] readLongs()
                 throws java.io.IOException
Throws:
java.io.IOException

readFloats

public float[] readFloats()
                   throws java.io.IOException
Throws:
java.io.IOException

readDoubles

public double[] readDoubles()
                     throws java.io.IOException
Throws:
java.io.IOException

readStrings

public java.lang.String[] readStrings()
                               throws java.io.IOException
Throws:
java.io.IOException

readDates

public java.util.Date[] readDates()
                           throws java.io.IOException
Throws:
java.io.IOException

createLittleEndian

public static JavaValueInputStream createLittleEndian(java.io.InputStream is)