|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.cinecolombia.common.uiutils.ByteArrayFromFile
Extracts of content of a file as an array of bytes.
Field Summary | |
private byte[] |
buff
Bytes buffer where the read operation puts read bytes. |
(package private) static int |
BUFSIZE
Buffer size for bytes reading from the file. |
private java.io.ByteArrayOutputStream |
outbyte
Output Stream where read bytes are appended. |
Constructor Summary | |
ByteArrayFromFile(java.io.File file)
Constructor for the ByteArrayFromFile object. |
|
ByteArrayFromFile(java.lang.String file)
Constructor for the ByteArrayFromFile object. |
Method Summary | |
byte[] |
getBytes()
Returns the content of the file as an array of bytes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final int BUFSIZE
private byte[] buff
private java.io.ByteArrayOutputStream outbyte
Constructor Detail |
public ByteArrayFromFile(java.lang.String file) throws java.io.IOException
file
- Name of the file whose bytes are to be delivered.
java.io.IOException
public ByteArrayFromFile(java.io.File file) throws java.io.IOException
file
- File object whose bytes are to be delivered.
java.io.IOException
Method Detail |
public byte[] getBytes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |