uk.co.mmscomputing.io
Class LEInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by uk.co.mmscomputing.io.MultiByteInputStream
              extended by uk.co.mmscomputing.io.LEInputStream
All Implemented Interfaces:
java.io.Closeable

public class LEInputStream
extends MultiByteInputStream


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
LEInputStream(java.io.File f)
           
LEInputStream(java.io.InputStream in)
           
LEInputStream(java.net.URL url)
           
 
Method Summary
 void convertByteToShort(byte[] in, int inoff, short[] out, int outoff)
           
 void convertShortToByte(short[] in, int inoff, byte[] out, int outoff)
           
 int read(int[] outbuf, int off, int len)
           
 int read(short[] outbuf, int off, int len)
           
 boolean readBoolean()
           
 int readInt()
           
 short readShort()
           
 int readUnsignedShort()
           
 
Methods inherited from class uk.co.mmscomputing.io.MultiByteInputStream
read
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LEInputStream

public LEInputStream(java.io.InputStream in)

LEInputStream

public LEInputStream(java.io.File f)
              throws java.io.IOException
Throws:
java.io.IOException

LEInputStream

public LEInputStream(java.net.URL url)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readBoolean

public boolean readBoolean()
                    throws java.io.IOException
Throws:
java.io.IOException

readInt

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

readShort

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

readUnsignedShort

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

convertByteToShort

public void convertByteToShort(byte[] in,
                               int inoff,
                               short[] out,
                               int outoff)
Specified by:
convertByteToShort in class MultiByteInputStream

convertShortToByte

public void convertShortToByte(short[] in,
                               int inoff,
                               byte[] out,
                               int outoff)
Specified by:
convertShortToByte in class MultiByteInputStream

read

public int read(short[] outbuf,
                int off,
                int len)
         throws java.io.IOException
Specified by:
read in class MultiByteInputStream
Throws:
java.io.IOException

read

public int read(int[] outbuf,
                int off,
                int len)
         throws java.io.IOException
Specified by:
read in class MultiByteInputStream
Throws:
java.io.IOException


Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.