public class DiffWriter extends Writer
writeNewLine()
that can be used for writing line separators which can be defined. A
PrintWriter would actually be better, but it does not support
defining the line separator to use.| Modifier and Type | Field and Description |
|---|---|
static String |
LS_NATIVE
native line separator
|
static String |
LS_UNIX
unix line separator
|
static String |
LS_WINDOWS
windows line separator
|
| Constructor and Description |
|---|
DiffWriter(Writer out) |
DiffWriter(Writer out,
String lineSeparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
void |
writeNewLine()
Writes a new line according to the defined line separator
|
public static final String LS_NATIVE
public static final String LS_UNIX
public static final String LS_WINDOWS
public DiffWriter(Writer out)
public DiffWriter(Writer out, String lineSeparator)
lineSeparator - the line seperator to use for writeNewLine()public void writeNewLine()
throws IOException
IOException - if an I/O error occurspublic void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved