uk.co.mmscomputing.io
Class MultiByteInputStream

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

public abstract class MultiByteInputStream
extends java.io.FilterInputStream


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
MultiByteInputStream(java.io.InputStream in)
           
 
Method Summary
abstract  void convertByteToShort(byte[] in, int inoff, short[] out, int outoff)
           
abstract  void convertShortToByte(short[] in, int inoff, byte[] out, int outoff)
           
abstract  int read(int[] b, int off, int len)
           
 int read(short[] b)
           
abstract  int read(short[] b, int off, int len)
           
 
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

MultiByteInputStream

public MultiByteInputStream(java.io.InputStream in)
Method Detail

convertShortToByte

public abstract void convertShortToByte(short[] in,
                                        int inoff,
                                        byte[] out,
                                        int outoff)

convertByteToShort

public abstract void convertByteToShort(byte[] in,
                                        int inoff,
                                        short[] out,
                                        int outoff)

read

public int read(short[] b)
         throws java.io.IOException
Throws:
java.io.IOException

read

public abstract int read(short[] b,
                         int off,
                         int len)
                  throws java.io.IOException
Throws:
java.io.IOException

read

public abstract int read(int[] b,
                         int off,
                         int len)
                  throws java.io.IOException
Throws:
java.io.IOException


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