|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutils.FileReader
public class FileReader
utils for reading files
| Constructor Summary | |
|---|---|
FileReader()
|
|
| Method Summary | |
|---|---|
static byte[] |
getBytesFromFile(java.io.File file)
|
static byte[] |
getBytesFromStream(java.io.InputStream is,
long length)
get byte array from stream |
static java.lang.String |
getContents(java.io.File aFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileReader()
| Method Detail |
|---|
public static byte[] getBytesFromFile(java.io.File file)
throws java.io.IOException
file - File object
java.io.IOException - if it can not get byte array from streamFile
public static byte[] getBytesFromStream(java.io.InputStream is,
long length)
throws java.io.IOException
is - InputStream objectlength - length of getting object
java.io.IOException - could not completely read streamInputStreampublic static java.lang.String getContents(java.io.File aFile)
aFile - File object
File
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||