net.sf.farrago.catalog
Class FarragoReposUtil.InvalidXmlCharFilterInputStream.ByteOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by net.sf.farrago.catalog.FarragoReposUtil.InvalidXmlCharFilterInputStream.ByteOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
FarragoReposUtil.InvalidXmlCharFilterInputStream

private static class FarragoReposUtil.InvalidXmlCharFilterInputStream.ByteOutputStream
extends ByteArrayOutputStream

ByteOutputStream extends ByteArrayOutputStream to provide ByteBuffer-like operations such as compact, array and get.


Field Summary
private  int pos
           
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
FarragoReposUtil.InvalidXmlCharFilterInputStream.ByteOutputStream(int initialBufferSize)
           
 
Method Summary
 byte[] array()
           
 void compact()
           
 byte get()
           
 void get(byte[] b, int off, int len)
           
 int remaining()
           
 void reset()
           
 void size(int size)
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, 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
 

Field Detail

pos

private int pos
Constructor Detail

FarragoReposUtil.InvalidXmlCharFilterInputStream.ByteOutputStream

public FarragoReposUtil.InvalidXmlCharFilterInputStream.ByteOutputStream(int initialBufferSize)
Method Detail

size

public void size(int size)

array

public byte[] array()

get

public byte get()

get

public void get(byte[] b,
                int off,
                int len)

remaining

public int remaining()

reset

public void reset()
Overrides:
reset in class ByteArrayOutputStream

compact

public void compact()