Package org.kohsuke.stapler.framework.io
Class LineEndNormalizingWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.kohsuke.stapler.framework.io.LineEndNormalizingWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Finds the lone LF and converts that to CR+LF.
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.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from class java.io.FilterWriter
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterWriter
close, flush
Methods inherited from class java.io.Writer
append, append, append, nullWriter
-
Constructor Details
-
LineEndNormalizingWriter
-
-
Method Details
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-