org.mule.transport.tcp.protocols
Class SlowInputStream
java.lang.Object
java.io.InputStream
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SlowInputStream
public SlowInputStream()
SlowInputStream
public SlowInputStream(int[] contents)
SlowInputStream
public SlowInputStream(byte[] bytes)
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.