public class FileBytes extends OutputStream
| Modifier and Type | Method and Description |
|---|---|
FileBytes |
appendData(byte[] inBytes) |
FileBytes |
appendData(byte[] inBytes,
int inOffset,
int inLength) |
FileBytes |
appendData(FileBytes inFileBytes) |
void |
appendData(int inByte) |
byte[] |
getBytes() |
InputStream |
getDataStream() |
long |
length() |
String |
name() |
FileBytes |
setData(byte[] inData) |
FileBytes |
setData(InputStream inStream) |
static void |
streamAsZipFile(OutputStream inWriteTarget,
String inBaseZipFileName,
Collection<FileBytes> inFiles) |
void |
write(byte[] inBytes) |
void |
write(byte[] inBytes,
int inOffset,
int inLength) |
void |
write(int inByte) |
void |
writeData(OutputStream inStream) |
close, flushpublic long length()
public FileBytes setData(byte[] inData) throws IOException
IOExceptionpublic FileBytes setData(InputStream inStream) throws IOException
IOExceptionpublic void write(int inByte) throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] inBytes) throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] inBytes, int inOffset, int inLength) throws IOException
write in class OutputStreamIOExceptionpublic void appendData(int inByte) throws IOException
IOExceptionpublic FileBytes appendData(byte[] inBytes) throws IOException
IOExceptionpublic FileBytes appendData(byte[] inBytes, int inOffset, int inLength) throws IOException
IOExceptionpublic FileBytes appendData(FileBytes inFileBytes) throws IOException
IOExceptionpublic byte[] getBytes()
public InputStream getDataStream()
public void writeData(OutputStream inStream) throws IOException
IOExceptionpublic static void streamAsZipFile(OutputStream inWriteTarget, String inBaseZipFileName, Collection<FileBytes> inFiles) throws IOException
IOException
jataylor@hairyfatguy.com