Interface TextFileIO


public interface TextFileIO
  • Method Details

    • decodeFrom

      @NotNull <T> @NotNull dev.siroshun.jfun.result.Result<T,DecodeError> decodeFrom(@NotNull @NotNull Reader reader, @NotNull @NotNull Decoder<? extends T> decoder)
    • encodeTo

      @NotNull <T> @NotNull dev.siroshun.jfun.result.Result<Void,EncodeError> encodeTo(@NotNull @NotNull Writer writer, @NotNull @NotNull Encoder<? super T> encoder, @UnknownNullability T input)
    • decodeFrom

      @NotNull default <T> @NotNull dev.siroshun.jfun.result.Result<T,DecodeError> decodeFrom(@NotNull @NotNull Path filepath, @NotNull @NotNull Decoder<? extends T> decoder)
    • encodeTo

      @NotNull default <T> @NotNull dev.siroshun.jfun.result.Result<Void,EncodeError> encodeTo(@NotNull @NotNull Path filepath, Encoder<? super T> encoder, @UnknownNullability T input)
    • decodeFrom

      @NotNull default <T> @NotNull dev.siroshun.jfun.result.Result<T,DecodeError> decodeFrom(@NotNull @NotNull InputStream input, @NotNull @NotNull Decoder<? extends T> decoder)
    • encodeTo

      @NotNull default <T> @NotNull dev.siroshun.jfun.result.Result<Void,EncodeError> encodeTo(@NotNull @NotNull OutputStream output, @NotNull @NotNull Encoder<? super T> encoder, @UnknownNullability T input)
    • decodeString

      @NotNull default <T> @NotNull dev.siroshun.jfun.result.Result<T,DecodeError> decodeString(@NotNull @NotNull Decoder<? extends T> decoder, @NotNull @NotNull String str)
    • encodeToString

      @NotNull default <T> @NotNull dev.siroshun.jfun.result.Result<String,EncodeError> encodeToString(@NotNull @NotNull Encoder<? super T> encoder, @UnknownNullability T input)
    • createParentDirectory

      @NotNull default @NotNull dev.siroshun.jfun.result.Result<Void,EncodeError> createParentDirectory(@NotNull @NotNull Path filepath)