Package nbbrd.io.text
Class TextBuffers
- java.lang.Object
-
- nbbrd.io.text.TextBuffers
-
public final class TextBuffers extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_CHAR_BUFFER_SIZEstatic intIMPL_DEPENDENT_MIN_BUFFER_CAPstatic TextBuffersUNKNOWN
-
Constructor Summary
Constructors Constructor Description TextBuffers()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @org.checkerframework.checker.index.qual.NonNegative intgetChannelMinBufferCap()@org.checkerframework.checker.index.qual.NonNegative intgetCharBufferSize()@NonNull ReadernewCharReader(@NonNull ReadableByteChannel channel, @NonNull CharsetDecoder decoder)@NonNull WriternewCharWriter(@NonNull WritableByteChannel channel, @NonNull CharsetEncoder encoder)static @NonNull TextBuffersof(@NonNull InputStream stream, @NonNull CharsetDecoder decoder)static @NonNull TextBuffersof(@NonNull OutputStream stream, @NonNull CharsetEncoder encoder)static @NonNull TextBuffersof(@NonNull Path file, @NonNull CharsetDecoder decoder)static @NonNull TextBuffersof(@NonNull Path file, @NonNull CharsetEncoder encoder)
-
-
-
Field Detail
-
DEFAULT_CHAR_BUFFER_SIZE
public static final int DEFAULT_CHAR_BUFFER_SIZE
- See Also:
- Constant Field Values
-
IMPL_DEPENDENT_MIN_BUFFER_CAP
public static final int IMPL_DEPENDENT_MIN_BUFFER_CAP
- See Also:
- Constant Field Values
-
UNKNOWN
public static final TextBuffers UNKNOWN
-
-
Method Detail
-
of
public static @NonNull TextBuffers of(@NonNull Path file, @NonNull CharsetDecoder decoder) throws IOException
- Throws:
IOException
-
of
public static @NonNull TextBuffers of(@NonNull Path file, @NonNull CharsetEncoder encoder) throws IOException
- Throws:
IOException
-
of
public static @NonNull TextBuffers of(@NonNull InputStream stream, @NonNull CharsetDecoder decoder) throws IOException
- Throws:
IOException
-
of
public static @NonNull TextBuffers of(@NonNull OutputStream stream, @NonNull CharsetEncoder encoder) throws IOException
- Throws:
IOException
-
getCharBufferSize
public @org.checkerframework.checker.index.qual.NonNegative int getCharBufferSize()
-
getChannelMinBufferCap
public @org.checkerframework.checker.index.qual.NonNegative int getChannelMinBufferCap()
-
newCharReader
public @NonNull Reader newCharReader(@NonNull ReadableByteChannel channel, @NonNull CharsetDecoder decoder)
-
newCharWriter
public @NonNull Writer newCharWriter(@NonNull WritableByteChannel channel, @NonNull CharsetEncoder encoder)
-
-