public class FileFunctions extends Object
| コンストラクタ | 説明 |
|---|---|
FileFunctions() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
static void |
CreateBinFile(String filename,
List<Byte> bin) |
Creates a binary file.
|
static void |
CreateTextFile(String filename,
String encoding,
List<String> lines) |
Creates a text file.
|
static List<Byte> |
GetFileAllBin(String filename) |
Returns all bytes of a binary file.
|
static String[] |
GetFileAllLines(String filename,
String encoding) |
Returns all lines of a text file.
|
public static String[] GetFileAllLines(String filename, String encoding) throws FileNotFoundException, UnsupportedEncodingException
filename - Filename to loadencoding - Encoding of the fileFileNotFoundException - Specified file not foundUnsupportedEncodingException - Specified encoding not supportedpublic static List<Byte> GetFileAllBin(String filename) throws FileNotFoundException
filename - Filename to loadFileNotFoundException - Specified file not foundpublic static void CreateTextFile(String filename, String encoding, List<String> lines) throws FileNotFoundException, UnsupportedEncodingException
filename - Filenameencoding - Encodinglines - Lines to write in the fileFileNotFoundException - Fail in opening an output streamUnsupportedEncodingException - Unsupported encoding specifiedpublic static void CreateBinFile(String filename, List<Byte> bin) throws FileNotFoundException
filename - Filenamebin - A list of bytesFileNotFoundException - Fail in opening an output streamCopyright © 2019. All rights reserved.