com.rapplogic.xbee.util
Class IntArrayInputStream

java.lang.Object
  extended by com.rapplogic.xbee.util.IntArrayInputStream
All Implemented Interfaces:
IIntInputStream

public class IntArrayInputStream
extends java.lang.Object
implements IIntInputStream

//TODO replace with nio.IntBuffer


Constructor Summary
IntArrayInputStream(int[] source)
           
 
Method Summary
 int read()
           
 int[] read(int size)
          Reads size bytes from the input stream and returns the bytes in an array
 int read(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntArrayInputStream

public IntArrayInputStream(int[] source)
Method Detail

read

public int read()
Specified by:
read in interface IIntInputStream

read

public int[] read(int size)
Reads size bytes from the input stream and returns the bytes in an array

Parameters:
size -
Returns:
Apr 13, 2009

read

public int read(java.lang.String s)
Specified by:
read in interface IIntInputStream