|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.sourceforge.simplefh.impl.SimpleFileReaderImpl
public class SimpleFileReaderImpl
SimpleFileReader
Constructor Summary | |
---|---|
SimpleFileReaderImpl()
|
Method Summary | |
---|---|
Integer |
getDefaultArrayLength()
Get default array length to buffering. |
String |
getEncodingToRead()
Get encoding to read. |
byte[] |
read2ByteArray(ClassPathResource resourcePath)
Read resource content(convert to byte array). |
byte[] |
read2ByteArray(File file)
Read file content(convert to byte array). |
byte[] |
read2ByteArray(String path)
Read file content(convert to byte array). |
char[] |
read2CharArray(ClassPathResource resourcePath)
Read resource content(convert to char array). |
char[] |
read2CharArray(File file)
Read file content(convert to char array). |
char[] |
read2CharArray(String path)
Read file content(convert to char array). |
String[] |
read2StringLineArray(ClassPathResource resourcePath)
Read resource content(convert to String array). |
String[] |
read2StringLineArray(File file)
Read file content(convert to String array). |
String[] |
read2StringLineArray(String path)
Read file content(convert to String array). |
List<String> |
read2StringLineList(ClassPathResource resourcePath)
Read resource content(convert to String List). |
List<String> |
read2StringLineList(File file)
Read file content(convert to String List). |
List<String> |
read2StringLineList(String path)
Read file content(convert to String List). |
SimpleFileReader |
setDefaultArrayLength(Integer defaultArrayLength)
Set default array length to buffering. |
SimpleFileReader |
setEncodingToRead(String encodingToRead)
Set encoding to read. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleFileReaderImpl()
Method Detail |
---|
public char[] read2CharArray(String path) throws IOException
SimpleFileReader
read2CharArray
in interface SimpleFileReader
path
- readable file resource of file path
IOException
- file read errorSimpleFileReader.read2CharArray(String)
public char[] read2CharArray(File file) throws IOException
SimpleFileReader
read2CharArray
in interface SimpleFileReader
file
- readable file object
IOException
- file read errorSimpleFileReader.read2CharArray(File)
public char[] read2CharArray(ClassPathResource resourcePath) throws IOException
SimpleFileReader
read2CharArray
in interface SimpleFileReader
resourcePath
- readable class path resource
IOException
jp.sourceforge.simplefh.SimpleFileReader#read2CharArray(jp.sourceforge
.simplefh.ClassPathResource)
public byte[] read2ByteArray(String path) throws IOException
SimpleFileReader
read2ByteArray
in interface SimpleFileReader
path
- readable file resource of file path
IOException
- file read errorSimpleFileReader.read2ByteArray(String)
public byte[] read2ByteArray(File file) throws IOException
SimpleFileReader
read2ByteArray
in interface SimpleFileReader
file
- readable file object
IOException
- file read errorSimpleFileReader.read2ByteArray(File)
public byte[] read2ByteArray(ClassPathResource resourcePath) throws IOException
SimpleFileReader
read2ByteArray
in interface SimpleFileReader
resourcePath
- readable class path resource
IOException
jp.sourceforge.simplefh.SimpleFileReader#read2ByteArray(jp.sourceforge
.simplefh.ClassPathResource)
public List<String> read2StringLineList(String path) throws IOException
SimpleFileReader
read2StringLineList
in interface SimpleFileReader
path
- readable file resource of file path
IOException
- file read errorSimpleFileReader.read2StringLineList(String)
public List<String> read2StringLineList(File file) throws IOException
SimpleFileReader
read2StringLineList
in interface SimpleFileReader
file
- readable file object
IOException
- file read errorSimpleFileReader.read2StringLineList(File)
public List<String> read2StringLineList(ClassPathResource resourcePath) throws IOException
SimpleFileReader
read2StringLineList
in interface SimpleFileReader
resourcePath
- readable class path resource
IOException
jp.sourceforge.simplefh.SimpleFileReader#read2StringLineList(jp.sourceforge
.simplefh.ClassPathResource)
public String[] read2StringLineArray(String path) throws IOException
SimpleFileReader
read2StringLineArray
in interface SimpleFileReader
path
- readable file resource of file path
IOException
- file read errorSimpleFileReader.read2StringLineArray(String)
public String[] read2StringLineArray(File file) throws IOException
SimpleFileReader
read2StringLineArray
in interface SimpleFileReader
file
- readable file object
IOException
- file read errorSimpleFileReader.read2StringLineArray(File)
public String[] read2StringLineArray(ClassPathResource resourcePath) throws IOException
SimpleFileReader
read2StringLineArray
in interface SimpleFileReader
resourcePath
- readable class path resource
IOException
jp.sourceforge.simplefh.SimpleFileReader#read2StringLineArray(jp.sourceforge
.simplefh.ClassPathResource)
public String getEncodingToRead()
SimpleFileReader
getEncodingToRead
in interface SimpleFileReader
public SimpleFileReader setEncodingToRead(String encodingToRead)
SimpleFileReader
setEncodingToRead
in interface SimpleFileReader
encodingToRead
- encoding
public Integer getDefaultArrayLength()
SimpleFileReader
getDefaultArrayLength
in interface SimpleFileReader
public SimpleFileReader setDefaultArrayLength(Integer defaultArrayLength)
SimpleFileReader
setDefaultArrayLength
in interface SimpleFileReader
defaultArrayLength
- default array length to buffering
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |