org.glassfish.jersey.media.json.internal
Class BufferingInputOutputStream
java.lang.Object
java.io.OutputStream
org.glassfish.jersey.media.json.internal.BufferingInputOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class BufferingInputOutputStream
- extends OutputStream
Output stream that buffers the written chunks of bytes and makes them available
for reading/retrieval.
- Author:
- Jakub Podlesak
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferingInputOutputStream
public BufferingInputOutputStream()
write
public void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
nextBytes
public byte[] nextBytes()
available
public int available()
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.