org.apache.xml.security.stax.impl.util
Class TrimmerOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by 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 $

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
TrimmerOutputStream(OutputStream out, int bufferSize, int startTrimLength, int endTrimLength)
           
 
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.io.FilterOutputStream
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrimmerOutputStream

public TrimmerOutputStream(OutputStream out,
                           int bufferSize,
                           int startTrimLength,
                           int endTrimLength)
Method Detail

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–2014 The Apache Software Foundation. All rights reserved.