Package com.jackmeng.stl
Class stl_Files
java.lang.Object
com.jackmeng.stl.stl_Files
public final class stl_Files
extends java.lang.Object
-
Constructor Summary
Constructors Modifier Constructor Description private
stl_Files()
-
Method Summary
Modifier and Type Method Description static void
erasure_create_file(java.lang.String fileName, stl_Callback<java.lang.Void,java.lang.Exception> errorHandler)
static void
fappend_1(java.lang.String fileName, stl_Callback<java.lang.Void,java.lang.Exception> errorHandler, java.lang.String content)
static void
fread_bl_1(java.lang.String fileName, stl_Callback<java.lang.Void,java.lang.Exception> errorHandler, stl_Callback<java.lang.Void,java.lang.String> consumer)
Read files by String (char[]) linesstatic void
fread_s_1(java.lang.String fileName, stl_Callback<java.lang.Void,java.lang.Exception> errorHandler, stl_Callback<java.lang.Void,java.lang.Byte> consumer)
Read by bytestatic void
fwrite_1(java.lang.String fileName, stl_Callback<java.lang.Void,java.lang.Exception> errorHandler, java.lang.String content)
Quick write (not speed wise (PrintWriter
is used))static java.net.URI
uri(java.lang.String fileName)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
stl_Files
private stl_Files()
-
-
Method Details
-
fwrite_1
public static void fwrite_1(java.lang.String fileName, stl_Callback<java.lang.Void,java.lang.Exception> errorHandler, java.lang.String content)Quick write (not speed wise (PrintWriter
is used))- Parameters:
content
-fileName
-errorHandler
-
-
uri
public static java.net.URI uri(java.lang.String fileName) -
erasure_create_file
public static void erasure_create_file(java.lang.String fileName, stl_Callback<java.lang.Void,java.lang.Exception> errorHandler) -
fappend_1
public static void fappend_1(java.lang.String fileName, stl_Callback<java.lang.Void,java.lang.Exception> errorHandler, java.lang.String content) -
fread_bl_1
public static void fread_bl_1(java.lang.String fileName, stl_Callback<java.lang.Void,java.lang.Exception> errorHandler, stl_Callback<java.lang.Void,java.lang.String> consumer)Read files by String (char[]) lines- Parameters:
fileName
-errorHandler
-consumer
-
-
fread_s_1
public static void fread_s_1(java.lang.String fileName, stl_Callback<java.lang.Void,java.lang.Exception> errorHandler, stl_Callback<java.lang.Void,java.lang.Byte> consumer)Read by byte- Parameters:
fileName
-errorHandler
-consumer
-
-