com.karmasphere.share.util
Class PatchableOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by com.karmasphere.share.util.PatchableOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class PatchableOutputStream
extends ByteArrayOutputStream


Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
PatchableOutputStream(int size)
           
 
Method Summary
 void set(int pos, byte data)
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatchableOutputStream

public PatchableOutputStream(int size)
Method Detail

set

public void set(int pos,
                byte data)
         throws ArrayIndexOutOfBoundsException
Throws:
ArrayIndexOutOfBoundsException


Copyright © 2004-2005 Karamsphere. All Rights Reserved.