Interface ReplayCharSequence
- All Superinterfaces:
AutoCloseable,CharSequence,Closeable
- All Known Implementing Classes:
GenericReplayCharSequence
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Charsetcharset to use in replay when declared value is absent/illegal/unavailable -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Call this method when done so implementation has chance to clean up resources.Return the effective Charset used to create this CharSequence from (raw byte) source material.Return the first coding-exception encountered, if the count > 0.longReport count of decoder errors silently eaten during ReplayCharSequence use.booleanisOpen()Methods inherited from interface java.lang.CharSequence
charAt, chars, codePoints, length, subSequence, toString
-
Field Details
-
FALLBACK_CHARSET
charset to use in replay when declared value is absent/illegal/unavailable
-
-
Method Details
-
close
Call this method when done so implementation has chance to clean up resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- Problem cleaning up file system resources.
-
getDecodeExceptionCount
long getDecodeExceptionCount()Report count of decoder errors silently eaten during ReplayCharSequence use. May be less than the number of individual decoding anomalies in underlying content (if decoding method doesn't allow counting individual errors). -
getCodingException
CharacterCodingException getCodingException()Return the first coding-exception encountered, if the count > 0.- Returns:
- CharacterCodingException
-
isOpen
boolean isOpen()- Returns:
- false if
close()has been called
-
getCharset
Charset getCharset()Return the effective Charset used to create this CharSequence from (raw byte) source material.
-