Save This Page
Home » sitemesh-2.3 » com.opensymphony.module » sitemesh » util » [javadoc | source]
com.opensymphony.module.sitemesh.util
public class: FastByteArrayOutputStream [javadoc | source]
java.lang.Object
   java.io.OutputStream
      java.io.ByteArrayOutputStream
         com.opensymphony.module.sitemesh.util.FastByteArrayOutputStream

All Implemented Interfaces:
    Closeable, Flushable

A speedy implementation of ByteArrayOutputStream. It's not synchronized, and it does not copy buffers when it's expanded. There's also no copying of the internal buffer if it's contents is extracted with the writeTo(stream) method.
Constructor:
 public FastByteArrayOutputStream() 
 public FastByteArrayOutputStream(int aSize) 
Method from com.opensymphony.module.sitemesh.util.FastByteArrayOutputStream Summary:
close,   flush,   reset,   size,   toByteArray,   toString,   toString,   write,   write,   writeTo
Methods from java.io.ByteArrayOutputStream:
close,   reset,   size,   toByteArray,   toString,   toString,   toString,   write,   write,   writeTo
Methods from java.io.OutputStream:
close,   flush,   write,   write,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.module.sitemesh.util.FastByteArrayOutputStream Detail:
 public  void close() throws IOException 
 public  void flush() throws IOException 
 public synchronized  void reset() 
 public int size() 
 public byte[] toByteArray() 
 public String toString() 
 public String toString(String enc) throws UnsupportedEncodingException 
 public  void write(int datum) 
 public  void write(byte[] data,
    int offset,
    int length) 
 public  void writeTo(OutputStream out) throws IOException