|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Writer
java.io.BufferedWriter
jist.swans.app.io.BufferedWriter
public class BufferedWriter
A functionally identical port of java.io.BufferedWriter, primarily brought into jist.swans.app.io package so that it could be dynamically rewritten.
| Field Summary | |
|---|---|
private char[] |
cb
buffer. |
private static int |
defaultCharBufferSize
buffer size. |
private java.lang.String |
lineSeparator
end-of-line. |
private int |
nChars
indices. |
private int |
nextChar
indices. |
private Writer |
out
underlying writer. |
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
BufferedWriter(Writer out)
|
|
BufferedWriter(Writer out,
int sz)
|
|
| Method Summary | |
|---|---|
void |
close()
|
private void |
ensureOpen()
|
void |
flush()
|
(package private) void |
flushBuffer()
|
private int |
min(int a,
int b)
|
void |
newLine()
|
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int c)
|
void |
write(java.lang.String s,
int off,
int len)
|
| Methods inherited from class java.io.Writer |
|---|
append, append, append, append, append, append, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Writer out
private char[] cb
private int nChars
private int nextChar
private static int defaultCharBufferSize
private java.lang.String lineSeparator
| Constructor Detail |
|---|
public BufferedWriter(Writer out)
BufferedWriter
public BufferedWriter(Writer out,
int sz)
BufferedWriter| Method Detail |
|---|
private void ensureOpen()
throws java.io.IOException
java.io.IOExceptionBufferedWriter
void flushBuffer()
throws java.io.IOException,
JistAPI.Continuable
java.io.IOException
JistAPI.ContinuableBufferedWriter
public void write(int c)
throws java.io.IOException,
JistAPI.Continuable
write in class java.io.BufferedWriterjava.io.IOException
JistAPI.ContinuableBufferedWriter
private int min(int a,
int b)
BufferedWriter
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException,
JistAPI.Continuable
write in class java.io.BufferedWriterjava.io.IOException
JistAPI.ContinuableBufferedWriter
public void write(java.lang.String s,
int off,
int len)
throws java.io.IOException,
JistAPI.Continuable
write in class java.io.BufferedWriterjava.io.IOException
JistAPI.ContinuableBufferedWriter
public void newLine()
throws java.io.IOException
newLine in class java.io.BufferedWriterjava.io.IOExceptionBufferedWriter
public void flush()
throws java.io.IOException,
JistAPI.Continuable
flush in interface java.io.Flushableflush in class java.io.BufferedWriterjava.io.IOException
JistAPI.ContinuableBufferedWriter
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.BufferedWriterjava.io.IOExceptionBufferedWriter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||