org.nakedobjects.metamodel.commons.encoding
Class DataInputStreamExtended

java.lang.Object
  extended by org.nakedobjects.metamodel.commons.encoding.DataInputStreamExtended
All Implemented Interfaces:
java.io.DataInput, DataInputExtended

public class DataInputStreamExtended
extends java.lang.Object
implements DataInputExtended


Constructor Summary
DataInputStreamExtended(java.io.InputStream inputStream)
           
 
Method Summary
 java.io.DataInputStream getDataInputStream()
          Underlying DataInputStream to read in primitives.
 boolean readBoolean()
           
 boolean[] readBooleans()
           
 byte readByte()
           
 byte[] readBytes()
           
 char readChar()
           
 char[] readChars()
           
 double readDouble()
           
 double[] readDoubles()
           
<T> T
readEncodable(java.lang.Class<T> encodableType)
           
<T> T[]
readEncodables(java.lang.Class<T> elementType)
           
 float readFloat()
           
 float[] readFloats()
           
 void readFully(byte[] b)
           
 void readFully(byte[] b, int off, int len)
           
 int readInt()
           
 int[] readInts()
           
 java.lang.String readLine()
           
 long readLong()
           
 long[] readLongs()
           
<T> T
readSerializable(java.lang.Class<T> serializableType)
           
<T> T[]
readSerializables(java.lang.Class<T> elementType)
           
 short readShort()
           
 short[] readShorts()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 java.lang.String readUTF()
           
 java.lang.String[] readUTFs()
           
 int skipBytes(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataInputStreamExtended

public DataInputStreamExtended(java.io.InputStream inputStream)
Method Detail

getDataInputStream

public java.io.DataInputStream getDataInputStream()
Description copied from interface: DataInputExtended
Underlying DataInputStream to read in primitives.

Specified by:
getDataInputStream in interface DataInputExtended

readBoolean

public boolean readBoolean()
                    throws java.io.IOException
Specified by:
readBoolean in interface java.io.DataInput
Throws:
java.io.IOException

readBooleans

public boolean[] readBooleans()
                       throws java.io.IOException
Specified by:
readBooleans in interface DataInputExtended
Throws:
java.io.IOException

readChar

public char readChar()
              throws java.io.IOException
Specified by:
readChar in interface java.io.DataInput
Throws:
java.io.IOException

readChars

public char[] readChars()
                 throws java.io.IOException
Specified by:
readChars in interface DataInputExtended
Throws:
java.io.IOException

readByte

public byte readByte()
              throws java.io.IOException
Specified by:
readByte in interface java.io.DataInput
Throws:
java.io.IOException

readBytes

public byte[] readBytes()
                 throws java.io.IOException
Specified by:
readBytes in interface DataInputExtended
Throws:
java.io.IOException

readShort

public short readShort()
                throws java.io.IOException
Specified by:
readShort in interface java.io.DataInput
Throws:
java.io.IOException

readShorts

public short[] readShorts()
                   throws java.io.IOException
Specified by:
readShorts in interface DataInputExtended
Throws:
java.io.IOException

readInt

public int readInt()
            throws java.io.IOException
Specified by:
readInt in interface java.io.DataInput
Throws:
java.io.IOException

readUnsignedByte

public int readUnsignedByte()
                     throws java.io.IOException
Specified by:
readUnsignedByte in interface java.io.DataInput
Throws:
java.io.IOException

readUnsignedShort

public int readUnsignedShort()
                      throws java.io.IOException
Specified by:
readUnsignedShort in interface java.io.DataInput
Throws:
java.io.IOException

readInts

public int[] readInts()
               throws java.io.IOException
Specified by:
readInts in interface DataInputExtended
Throws:
java.io.IOException

readLong

public long readLong()
              throws java.io.IOException
Specified by:
readLong in interface java.io.DataInput
Throws:
java.io.IOException

readLongs

public long[] readLongs()
                 throws java.io.IOException
Specified by:
readLongs in interface DataInputExtended
Throws:
java.io.IOException

readFloat

public float readFloat()
                throws java.io.IOException
Specified by:
readFloat in interface java.io.DataInput
Throws:
java.io.IOException

readFloats

public float[] readFloats()
                   throws java.io.IOException
Specified by:
readFloats in interface DataInputExtended
Throws:
java.io.IOException

readDouble

public double readDouble()
                  throws java.io.IOException
Specified by:
readDouble in interface java.io.DataInput
Throws:
java.io.IOException

readDoubles

public double[] readDoubles()
                     throws java.io.IOException
Specified by:
readDoubles in interface DataInputExtended
Throws:
java.io.IOException

readUTF

public java.lang.String readUTF()
                         throws java.io.IOException
Specified by:
readUTF in interface java.io.DataInput
Throws:
java.io.IOException

readUTFs

public java.lang.String[] readUTFs()
                            throws java.io.IOException
Specified by:
readUTFs in interface DataInputExtended
Throws:
java.io.IOException

readEncodable

public <T> T readEncodable(java.lang.Class<T> encodableType)
                throws java.io.IOException
Specified by:
readEncodable in interface DataInputExtended
Throws:
java.io.IOException

readEncodables

public <T> T[] readEncodables(java.lang.Class<T> elementType)
                   throws java.io.IOException
Specified by:
readEncodables in interface DataInputExtended
Throws:
java.io.IOException

readSerializable

public <T> T readSerializable(java.lang.Class<T> serializableType)
                   throws java.io.IOException
Specified by:
readSerializable in interface DataInputExtended
Throws:
java.io.IOException

readSerializables

public <T> T[] readSerializables(java.lang.Class<T> elementType)
                      throws java.io.IOException
Specified by:
readSerializables in interface DataInputExtended
Throws:
java.io.IOException

readFully

public void readFully(byte[] b)
               throws java.io.IOException
Specified by:
readFully in interface java.io.DataInput
Throws:
java.io.IOException

readFully

public void readFully(byte[] b,
                      int off,
                      int len)
               throws java.io.IOException
Specified by:
readFully in interface java.io.DataInput
Throws:
java.io.IOException

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Specified by:
readLine in interface java.io.DataInput
Throws:
java.io.IOException

skipBytes

public int skipBytes(int n)
              throws java.io.IOException
Specified by:
skipBytes in interface java.io.DataInput
Throws:
java.io.IOException


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.