public class PrefixWriter extends EndLineReWriter
| Modifier and Type | Field and Description |
|---|---|
protected String |
prefix |
protected boolean |
prefixWrited |
endl, writer| Constructor and Description |
|---|
PrefixWriter(Writer writer) |
PrefixWriter(Writer writer,
EndLine endl) |
PrefixWriter(Writer writer,
String endl) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPrefix() |
void |
setPrefix(String pref) |
void |
write(char[] cbuf,
int off,
int len) |
protected void |
writeChar(char c0)
Записывает символ в поток
|
protected void |
writeEndLine()
Записывает перевод строки в поток
|
protected void |
writePrefix() |
close, flush, getEndl, getEndLine, setEndl, setEndLineprotected String prefix
protected boolean prefixWrited
public PrefixWriter(Writer writer)
public String getPrefix()
public void setPrefix(String pref)
protected void writePrefix()
throws IOException
IOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class EndLineReWriterIOExceptionprotected void writeChar(char c0)
throws IOException
EndLineReWriterwriteChar in class EndLineReWriterc0 - СимволIOException - Ошибка IOprotected void writeEndLine()
throws IOException
EndLineReWriterwriteEndLine in class EndLineReWriterIOException - Ошибка IOCopyright © 2017. All rights reserved.