File I O Utils
class FileIOUtils
Content copied to clipboard
author: Blankj
blog : http://blankj.com
time : 2017/06/22
desc : utils about file io
Functions
readFile2BytesByChannel
Link copied to clipboard
readFile2BytesByMap
Link copied to clipboard
readFile2BytesByStream
Link copied to clipboard
readFile2List
Link copied to clipboard
open fun readFile2List(filePath: String, charsetName: String): List<String>
Content copied to clipboard
readFile2String
Link copied to clipboard
setBufferSize
Link copied to clipboard
writeFileFromBytesByChannel
Link copied to clipboard
writeFileFromBytesByMap
Link copied to clipboard
writeFileFromBytesByStream
Link copied to clipboard
open fun writeFileFromBytesByStream(file: File, bytes: Array<Byte>): Boolean
Content copied to clipboard
open fun writeFileFromBytesByStream(filePath: String, bytes: Array<Byte>): Boolean
Content copied to clipboard
writeFileFromIS
Link copied to clipboard
open fun writeFileFromIS(file: File, is: InputStream, append: Boolean): Boolean
Content copied to clipboard
open fun writeFileFromIS(filePath: String, is: InputStream, append: Boolean): Boolean
Content copied to clipboard
writeFileFromString
Link copied to clipboard
open fun writeFileFromString(file: File, content: String, append: Boolean): Boolean
Content copied to clipboard
open fun writeFileFromString(filePath: String, content: String, append: Boolean): Boolean
Content copied to clipboard