org.wso2.carbon.registry.core.jdbc.utils
Class DumpWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.wso2.carbon.registry.core.jdbc.utils.DumpWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class DumpWriter
extends Writer

A wrapper for writer that dumps skipping resource name="foo"


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
DumpWriter(Writer writer)
          Construct dump writer
 
Method Summary
 void close()
          Close the writer
 void flush()
          Flush the writer
 void write(char[] cBuf, int off, int len)
          Write a portion of an array of characters.
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpWriter

public DumpWriter(Writer writer)
Construct dump writer

Parameters:
writer - base writer
Method Detail

write

public void write(char[] cBuf,
                  int off,
                  int len)
           throws IOException
Write a portion of an array of characters.

Specified by:
write in class Writer
Parameters:
cBuf - Array of characters
off - Offset from which to start writing characters
len - Number of characters to write
Throws:
IOException - If an I/O error occurs

flush

public void flush()
           throws IOException
Flush the writer

Specified by:
flush in interface Flushable
Specified by:
flush in class Writer
Throws:
IOException, - if an I/O error occurs
IOException

close

public void close()
           throws IOException
Close the writer

Specified by:
close in interface Closeable
Specified by:
close in class Writer
Throws:
IOException, - if an I/O error occurs
IOException


Copyright © 2013 WSO2 Inc. All Rights Reserved.