Class TextResourceUtil
java.lang.Object
org.rumbledb.runtime.functions.io.TextResourceUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecodeStrict(byte[] bytes, Charset charset) static CharsetdetectEncoding(byte[] b) Detects the resource encoding as required by fn:json-doc and fn:unparsed-text: UTF-8, UTF-16, or UTF-32, from a leading byte-order mark or from the NUL pattern of the first bytes.static byte[]fetchBytes(URI uri, ExceptionMetadata metadata) static CharsetDecoderstrictDecoder(Charset charset)
-
Method Details
-
fetchBytes
- Throws:
IOException
-
strictDecoder
-
decodeStrict
- Throws:
CharacterCodingException
-
detectEncoding
Detects the resource encoding as required by fn:json-doc and fn:unparsed-text: UTF-8, UTF-16, or UTF-32, from a leading byte-order mark or from the NUL pattern of the first bytes.
-