@Deprecated public class LineEndNormalizingWriter extends FilterWriter
Internet Explorer's XmlHttpRequest.responseText seems to normalize the line end, and if we only send LF without CR, it will not recognize that as a new line. To work around this problem, we use this filter to always convert LF to CR+LF.
out| Constructor and Description |
|---|
LineEndNormalizingWriter(Writer out)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(char[] cbuf)
Deprecated.
|
void |
write(char[] cbuf,
int off,
int len)
Deprecated.
|
void |
write(int c)
Deprecated.
|
void |
write(String str)
Deprecated.
|
void |
write(String str,
int off,
int len)
Deprecated.
|
close, flushpublic LineEndNormalizingWriter(Writer out)
public void write(char[] cbuf)
throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
write in class WriterIOExceptionpublic void write(int c)
throws IOException
write in class FilterWriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class FilterWriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class FilterWriterIOExceptionCopyright © 2019. All rights reserved.