org.apache.cxf.io
Class AbstractWrappedOutputStream
java.lang.Object
   java.io.OutputStream
java.io.OutputStream
       org.apache.cxf.io.AbstractWrappedOutputStream
org.apache.cxf.io.AbstractWrappedOutputStream
- All Implemented Interfaces: 
- java.io.Closeable, java.io.Flushable
- Direct Known Subclasses: 
- AbstractThresholdOutputStream
- public abstract class AbstractWrappedOutputStream 
- extends java.io.OutputStream
Provides a convenient hook onFirstWrite() for those needing
 to wrap an output stream.
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
wrappedStream
protected java.io.OutputStream wrappedStream
written
protected boolean written
AbstractWrappedOutputStream
protected AbstractWrappedOutputStream()
write
public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
- 
- Overrides:
- writein class- java.io.OutputStream
 
- 
- Throws:
- java.io.IOException
 
onFirstWrite
protected void onFirstWrite()
                     throws java.io.IOException
- 
- Throws:
- java.io.IOException
 
write
public void write(byte[] b)
           throws java.io.IOException
- 
- Overrides:
- writein class- java.io.OutputStream
 
- 
- Throws:
- java.io.IOException
 
write
public void write(int b)
           throws java.io.IOException
- 
- Specified by:
- writein class- java.io.OutputStream
 
- 
- Throws:
- java.io.IOException
 
close
public void close()
           throws java.io.IOException
- 
- Specified by:
- closein interface- java.io.Closeable
- Overrides:
- closein class- java.io.OutputStream
 
- 
- Throws:
- java.io.IOException
 
flush
public void flush()
           throws java.io.IOException
- 
- Specified by:
- flushin interface- java.io.Flushable
- Overrides:
- flushin class- java.io.OutputStream
 
- 
- Throws:
- java.io.IOException
 
Apache CXF