fr.opensagres.xdocreport.core.io.internal
Class OutputStreamWriterCancelable

java.lang.Object
  extended by java.io.Writer
      extended by java.io.OutputStreamWriter
          extended by fr.opensagres.xdocreport.core.io.internal.OutputStreamWriterCancelable
All Implemented Interfaces:
StreamCancelable, Closeable, Flushable, Appendable

public class OutputStreamWriterCancelable
extends OutputStreamWriter
implements StreamCancelable

Extends OutputStreamWriter to implements StreamCancelable. This writer doesn't close the writer when StreamCancelable.cancel() is called.


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
OutputStreamWriterCancelable(OutputStream out, Charset charset)
           
 
Method Summary
 void cancel()
           
 void close()
           
 
Methods inherited from class java.io.OutputStreamWriter
flush, getEncoding, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamWriterCancelable

public OutputStreamWriterCancelable(OutputStream out,
                                    Charset charset)
Method Detail

cancel

public void cancel()
Specified by:
cancel in interface StreamCancelable

close

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


Copyright © 2013. All rights reserved.