org.apache.aries.web.converter.impl
Class CachedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.aries.web.converter.impl.CachedOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class CachedOutputStream
extends OutputStream


Constructor Summary
CachedOutputStream()
           
CachedOutputStream(long threshold, File outputDir)
           
 
Method Summary
 void close()
           
 void destroy()
           
 void flush()
           
 InputStream getInputStream()
           
 int size()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedOutputStream

public CachedOutputStream()

CachedOutputStream

public CachedOutputStream(long threshold,
                          File outputDir)
Method Detail

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

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

destroy

public void destroy()

size

public int size()

getInputStream

public InputStream getInputStream()
                           throws IOException
Throws:
IOException


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.