java.lang.Object
java.io.Writer
tools.jackson.core.io.UTF8Writer
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(char c) voidclose()protected intconvertSurrogate(int secondPart) Method called to calculate Unicode code-point, from a surrogate pair.voidflush()protected static voidillegalSurrogate(int code) protected static StringillegalSurrogateDesc(int code) voidwrite(char[] cbuf) voidwrite(char[] cbuf, int off, int len) voidwrite(int c) voidvoidMethods inherited from class java.io.Writer
append, append, nullWriter
-
Field Details
-
SURR1_FIRST
public static final int SURR1_FIRST- See Also:
-
SURR1_LAST
public static final int SURR1_LAST- See Also:
-
SURR2_FIRST
public static final int SURR2_FIRST- See Also:
-
SURR2_LAST
public static final int SURR2_LAST- See Also:
-
SURROGATE_BASE
public static final int SURROGATE_BASE- Since:
- 2.17
- See Also:
-
-
Constructor Details
-
UTF8Writer
-
-
Method Details
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein 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
-