org.apache.xml.security.stax.impl.util
Class TrimmerOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.xml.security.stax.impl.util.TrimmerOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class TrimmerOutputStream
- extends FilterOutputStream
Trimms the start and the end of a stream
- Version:
- $Revision: 1513098 $ $Date: 2013-08-12 11:28:33 +0100 (Mon, 12 Aug 2013) $
- Author:
- $Author: coheigea $
Method Summary |
void |
flush()
|
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 |
TrimmerOutputStream
public TrimmerOutputStream(OutputStream out,
int bufferSize,
int startTrimLength,
int endTrimLength)
write
public void write(int b)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class FilterOutputStream
- Throws:
IOException
Copyright © 2000–2013 The Apache Software Foundation. All rights reserved.