org.mule.transport.tcp.protocols
Class SlowInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.mule.transport.tcp.protocols.SlowInputStream
All Implemented Interfaces:
Closeable

public class SlowInputStream
extends InputStream

Returns data one byte at a time. By default the data are a 4 byte integer, value 1, and a single byte value -1.


Field Summary
static int[] CONTENTS
           
static int EOF
           
static int FULL_LENGTH
           
static int PAYLOAD
           
 
Constructor Summary
SlowInputStream()
           
SlowInputStream(byte[] bytes)
           
SlowInputStream(int[] contents)
           
 
Method Summary
 int available()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 
Methods inherited from class java.io.InputStream
close, read, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOF

public static final int EOF
See Also:
Constant Field Values

PAYLOAD

public static int PAYLOAD

CONTENTS

public static int[] CONTENTS

FULL_LENGTH

public static final int FULL_LENGTH
Constructor Detail

SlowInputStream

public SlowInputStream()

SlowInputStream

public SlowInputStream(int[] contents)

SlowInputStream

public SlowInputStream(byte[] bytes)
Method Detail

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Throws:
IOException

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class InputStream
Throws:
IOException

mark

public void mark(int readlimit)
Overrides:
mark in class InputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.