Package nbbrd.io.text
Class TextBuffers
java.lang.Object
nbbrd.io.text.TextBuffers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint@org.checkerframework.checker.index.qual.NonNegative int@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 Details
-
DEFAULT_CHAR_BUFFER_SIZE
public static final int DEFAULT_CHAR_BUFFER_SIZE- See Also:
-
IMPL_DEPENDENT_MIN_BUFFER_CAP
public static final int IMPL_DEPENDENT_MIN_BUFFER_CAP- See Also:
-
UNKNOWN
-
-
Constructor Details
-
TextBuffers
public TextBuffers()
-
-
Method Details
-
of
@NonNull public static @NonNull TextBuffers of(@NonNull @NonNull Path file, @NonNull @NonNull CharsetDecoder decoder) throws IOException - Throws:
IOException
-
of
@NonNull public static @NonNull TextBuffers of(@NonNull @NonNull Path file, @NonNull @NonNull CharsetEncoder encoder) throws IOException - Throws:
IOException
-
of
@NonNull public static @NonNull TextBuffers of(@NonNull @NonNull InputStream stream, @NonNull @NonNull CharsetDecoder decoder) throws IOException - Throws:
IOException
-
of
@NonNull public static @NonNull TextBuffers of(@NonNull @NonNull OutputStream stream, @NonNull @NonNull CharsetEncoder encoder) throws IOException - Throws:
IOException
-
getCharBufferSize
public @org.checkerframework.checker.index.qual.NonNegative int getCharBufferSize() -
getChannelMinBufferCap
public int getChannelMinBufferCap() -
newCharReader
@NonNull public @NonNull Reader newCharReader(@NonNull @NonNull ReadableByteChannel channel, @NonNull @NonNull CharsetDecoder decoder) -
newCharWriter
@NonNull public @NonNull Writer newCharWriter(@NonNull @NonNull WritableByteChannel channel, @NonNull @NonNull CharsetEncoder encoder)
-