nanoxml
Class kXMLStringWriter

java.lang.Object
java.io.Writer
nanoxml.kXMLStringWriter
- public class kXMLStringWriter
- extends java.io.Writer
|
Method Summary |
void |
close()
This method closes the stream. |
void |
flush()
This method forces any data that may have been buffered to be written
to the underlying output device. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
void |
write(char[] b,
int off,
int len)
This method writes len char from the specified array
buf starting at index offset into the array. |
void |
write(int c)
This method writes a single char to the output stream. |
void |
write(java.lang.String str)
This method writes all the characters in a String to the
output. |
buf
private java.lang.StringBuffer buf
kXMLStringWriter
public kXMLStringWriter()
close
public void close()
- Description copied from class:
java.io.Writer
- This method closes the stream. Any internal or native resources
associated
with this stream are freed. Any subsequent attempt to access the stream
might throw an exception.
This method in this class does nothing.
flush
public void flush()
- Description copied from class:
java.io.Writer
- This method forces any data that may have been buffered to be written
to the underlying output device. Please note that the host environment
might perform its own buffering unbeknowst to Java. In that case, a
write made (for example, to a disk drive) might be cached in OS
buffers instead of actually being written to disk.
write
public void write(int c)
- Description copied from class:
java.io.Writer
- This method writes a single char to the output stream.
write
public void write(char[] b,
int off,
int len)
- Description copied from class:
java.io.Writer
- This method writes
len char from the specified array
buf starting at index offset into the array.
Subclasses must provide an implementation of this abstract method.
write
public void write(java.lang.String str)
- Description copied from class:
java.io.Writer
- This method writes all the characters in a
String to the
output.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).