org.kohsuke.stapler.framework.io
Class ByteBuffer
java.lang.Object
java.io.OutputStream
org.kohsuke.stapler.framework.io.ByteBuffer
- All Implemented Interfaces:
- Closeable, Flushable
public class ByteBuffer
- extends OutputStream
ByteArrayOutputStream
re-implementation.
This version allows one to read while writing is in progress.
- Author:
- Kohsuke Kawaguchi
ByteBuffer
public ByteBuffer()
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException
length
public long length()
toString
public String toString()
- Overrides:
toString
in class Object
writeTo
public void writeTo(OutputStream os)
throws IOException
- Writes the contents of this buffer to another OutputStream.
- Throws:
IOException
newInputStream
public InputStream newInputStream()
- Creates an
InputStream
that reads from the underlying buffer.
Copyright © 2010. All Rights Reserved.