Package com.fasterxml.jackson.core.io
Class UTF8Writer
java.lang.Object
java.io.Writer
com.fasterxml.jackson.core.io.UTF8Writer
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) void
close()
protected int
convertSurrogate
(int secondPart) Method called to calculate Unicode code-point, from a surrogate pair.void
flush()
protected static void
illegalSurrogate
(int code) protected static String
illegalSurrogateDesc
(int code) void
write
(char[] cbuf) void
write
(char[] cbuf, int off, int len) void
write
(int c) void
void
Methods inherited from class java.io.Writer
append, append, nullWriter
-
Constructor Details
-
UTF8Writer
-
-
Method Details
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
convertSurrogate
Method called to calculate Unicode code-point, from a surrogate pair.- Parameters:
secondPart
- Second UTF-16 unit of surrogate (first part stored in_surrogate
)- Returns:
- Decoded Unicode point
- Throws:
IOException
- If surrogate pair is invalid
-
illegalSurrogate
- Throws:
IOException
-
illegalSurrogateDesc
-