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:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class DumpWriter
extends java.io.Writer

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


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
DumpWriter(java.io.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(java.io.Writer writer)
Construct dump writer

Parameters:
writer - base writer
Method Detail

write

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

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

flush

public void flush()
           throws java.io.IOException
Flush the writer

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

close

public void close()
           throws java.io.IOException
Close the writer

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


Copyright © 2011 WSO2 Inc. All Rights Reserved.