public class PrefixedWriter
extends java.io.Writer
| Constructor and Description |
|---|
PrefixedWriter(java.lang.String prefix,
java.io.Writer sink,
int maxLineLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
completeLine()
Complete the current line (emit LF if not at the start of the line already).
|
void |
flush() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
public PrefixedWriter(java.lang.String prefix,
java.io.Writer sink,
int maxLineLength)
public void write(int c)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionpublic void completeLine()
throws java.io.IOException
java.io.IOException - Propagated.