hudson.util
Class ByteBuffer

java.lang.Object
  extended by java.io.OutputStream
      extended by hudson.util.ByteBuffer
All Implemented Interfaces:
Closeable, Flushable

Deprecated. since 2008-05-28. Moved to stapler

public class ByteBuffer
extends OutputStream

ByteArrayOutputStream re-implementation.

This version allows one to read while writing is in progress.

Author:
Kohsuke Kawaguchi

Constructor Summary
ByteBuffer()
          Deprecated.  
 
Method Summary
 long length()
          Deprecated.  
 InputStream newInputStream()
          Deprecated. Creates an InputStream that reads from the underlying buffer.
 String toString()
          Deprecated.  
 void write(byte[] b, int off, int len)
          Deprecated.  
 void write(int b)
          Deprecated.  
 void writeTo(OutputStream os)
          Deprecated. Writes the contents of this buffer to another OutputStream.
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteBuffer

public ByteBuffer()
Deprecated. 
Method Detail

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Deprecated. 
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(int b)
           throws IOException
Deprecated. 
Specified by:
write in class OutputStream
Throws:
IOException

length

public long length()
Deprecated. 

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

writeTo

public void writeTo(OutputStream os)
             throws IOException
Deprecated. 
Writes the contents of this buffer to another OutputStream.

Throws:
IOException

newInputStream

public InputStream newInputStream()
Deprecated. 
Creates an InputStream that reads from the underlying buffer.



Copyright © 2004-2013. All Rights Reserved.