org.apache.activemq.util
Class ByteArrayInputStream
java.lang.Object
java.io.InputStream
org.apache.activemq.util.ByteArrayInputStream
- All Implemented Interfaces:
- Closeable
public class ByteArrayInputStream
- extends InputStream
Very similar to the java.io.ByteArrayInputStream but this version is not
thread safe.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayInputStream
public ByteArrayInputStream(byte[] data)
ByteArrayInputStream
public ByteArrayInputStream(ByteSequence sequence)
ByteArrayInputStream
public ByteArrayInputStream(byte[] data,
int offset,
int size)
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
- Overrides:
read
in class InputStream
skip
public long skip(long len)
throws IOException
- Overrides:
skip
in class InputStream
- Throws:
IOException
available
public int available()
- Overrides:
available
in class InputStream
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class InputStream
mark
public void mark(int markpos)
- Overrides:
mark
in class InputStream
reset
public void reset()
- Overrides:
reset
in class InputStream
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.