|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Writer
org.json.me.StringWriter
public class StringWriter
A simple StringBuffer-based implementation of StringWriter
| Field Summary |
|---|
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | ||
|---|---|---|
StringWriter()
|
||
StringWriter(int initialSize)
|
||
| Method Summary | ||
|---|---|---|
void |
close()
Close the stream, flushing it first. |
|
void |
flush()
Flush the stream. |
|
void |
write(char[] cbuf,
int off,
int len)
Write a portion of an array of characters. |
|
void |
write(String str)
Write a string. |
|
void |
write(String str,
int off,
int len)
Write a portion of a string. |
|
| Methods inherited from class java.io.Writer |
|---|
write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringWriter()
public StringWriter(int initialSize)
| Method Detail |
|---|
public void write(char[] cbuf,
int off,
int len)
throws IOException
Writer
write in class Writercbuf - Array of charactersoff - Offset from which to start writing characterslen - Number of characters to write
IOException - If an I/O error occurs
public void write(String str)
throws IOException
Writer
write in class Writerstr - String to be written
IOException - If an I/O error occurs
public void write(String str,
int off,
int len)
throws IOException
Writer
write in class Writerstr - A Stringoff - Offset from which to start writing characterslen - Number of characters to write
IOException - If an I/O error occurs
public void flush()
throws IOException
Writer
flush in class WriterIOException - If an I/O error occurs
public void close()
throws IOException
Writer
close in class WriterIOException - If an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.