Package soot.util
Class EscapedWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- soot.util.EscapedWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class EscapedWriter extends FilterWriter
A FilterWriter which catches to-be-escaped characters (\\unnnn) in the input and substitutes their escaped representation. Used for Soot output.
-
-
Field Summary
Fields Modifier and Type Field Description StringlineSeparatorConvenience field containing the system's line separator.-
Fields inherited from class java.io.FilterWriter
out
-
-
Constructor Summary
Constructors Constructor Description EscapedWriter(Writer fos)Constructs an EscapedWriter around the given Writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprint(int ch)Print a single character (unsupported).voidwrite(int ch)Write a single character.voidwrite(String s, int off, int len)Write a segment of the given String.-
Methods inherited from class java.io.FilterWriter
close, flush, write
-
-
-
-
Field Detail
-
lineSeparator
public final String lineSeparator
Convenience field containing the system's line separator.
-
-
Constructor Detail
-
EscapedWriter
public EscapedWriter(Writer fos)
Constructs an EscapedWriter around the given Writer.
-
-
Method Detail
-
print
public void print(int ch) throws IOExceptionPrint a single character (unsupported).- Throws:
IOException
-
write
public void write(String s, int off, int len) throws IOException
Write a segment of the given String.- Overrides:
writein classFilterWriter- Throws:
IOException
-
write
public void write(int ch) throws IOExceptionWrite a single character.- Overrides:
writein classFilterWriter- Throws:
IOException
-
-