org.apgrid.grpc.ng
Class XDRInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.apgrid.grpc.ng.XDRInputStream
All Implemented Interfaces:
NgDataInputStream

public class XDRInputStream
extends java.io.FilterInputStream
implements NgDataInputStream


Constructor Summary
XDRInputStream(java.io.InputStream stream)
           
 
Method Summary
 void close()
           
 int readBytes(byte[] buffer, int offset, int length)
           
 char readChar()
           
 double readDouble()
           
 double readFloat()
           
 int readInt()
           
 long readLong()
           
 short readShort()
           
 java.lang.String readString()
           
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XDRInputStream

public XDRInputStream(java.io.InputStream stream)
Parameters:
stream -
Method Detail

close

public void close()
Specified by:
close in interface NgDataInputStream

readBytes

public int readBytes(byte[] buffer,
                     int offset,
                     int length)
              throws GrpcException
Specified by:
readBytes in interface NgDataInputStream
Parameters:
buffer -
offset -
length -
Returns:
Throws:
GrpcException

readChar

public char readChar()
              throws GrpcException
Returns:
Throws:
GrpcException

readDouble

public double readDouble()
                  throws GrpcException
Returns:
Throws:
GrpcException

readFloat

public double readFloat()
                 throws GrpcException
Returns:
Throws:
GrpcException

readInt

public int readInt()
            throws GrpcException
Specified by:
readInt in interface NgDataInputStream
Returns:
Throws:
GrpcException

readLong

public long readLong()
              throws GrpcException
Returns:
Throws:
GrpcException

readShort

public short readShort()
                throws GrpcException
Returns:
Throws:
GrpcException

readString

public java.lang.String readString()
                            throws GrpcException
Specified by:
readString in interface NgDataInputStream
Returns:
Throws:
GrpcException