java.lang.Object
io.xpipe.core.charsetter.Charsetter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voiddetect(StreamDataStore store) static Charsetterget()inferCharset(byte[] content) inferNewLine(byte[] content) static voidinit(CharsetterContext ctx) abstract Charsetter.Resultreader(StreamDataStore store, StreamCharset charset) reader(InputStream stream, StreamCharset charset) writer(StreamDataStore store, StreamCharset charset)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Charsetter
protected Charsetter()
-
-
Method Details
-
checkInit
protected static void checkInit() -
init
-
get
-
reader
- Throws:
Exception
-
writer
- Throws:
Exception
-
reader
- Throws:
Exception
-
read
public abstract Charsetter.Result read(FailableSupplier<InputStream> in, FailableConsumer<InputStreamReader, Exception> con) throws Exception- Throws:
Exception
-
detect
- Throws:
Exception
-
inferNewLine
-
inferCharset
-