|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.BufferedOutputStream
FlexOr.io.BufferedOutput
public class BufferedOutput
| Constructor Summary | |
|---|---|
BufferedOutput(java.lang.String fileName)
Creating an instance of BufferedOutput opens the named file. |
|
| Method Summary | |
|---|---|
int |
getCharCount()
|
int |
getLineLength()
|
int |
getTabStopDist()
|
void |
setTabStopDist(int tabStopDist)
|
void |
write(byte[] buffer,
int offset,
int count)
--------------------------- |
void |
write(int theChar)
--------------------------- |
void |
writeInteger(int integer)
We make use of the standard Java conversion routine combined with our custom output of strings. |
void |
writeInteger(int integer,
int width)
Require: String.valueOf(integer).length <= width Output an integer in a specified width of field. |
void |
writeNewline()
When a new line character is emitted we want to reset lineLength. |
void |
writeNoCount(byte[] buffer,
int offset,
int count)
Occasionally we need to output to the current line without adding to the line length (for example, when markup tags are output). |
| Methods inherited from class java.io.BufferedOutputStream |
|---|
flush |
| Methods inherited from class java.io.FilterOutputStream |
|---|
close, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferedOutput(java.lang.String fileName)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public int getCharCount()
public int getLineLength()
public int getTabStopDist()
public void setTabStopDist(int tabStopDist)
public void write(int theChar)
write in class java.io.BufferedOutputStreampublic void writeNewline()
public void write(byte[] buffer,
int offset,
int count)
write in class java.io.BufferedOutputStream
public void writeNoCount(byte[] buffer,
int offset,
int count)
public void writeInteger(int integer)
public void writeInteger(int integer,
int width)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||