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, flush
public long length()
public FileBytes setData(byte[] inData) throws IOException
IOException
public FileBytes setData(InputStream inStream) throws IOException
IOException
public void write(int inByte) throws IOException
write
in class OutputStream
IOException
public void write(byte[] inBytes) throws IOException
write
in class OutputStream
IOException
public void write(byte[] inBytes, int inOffset, int inLength) throws IOException
write
in class OutputStream
IOException
public void appendData(int inByte) throws IOException
IOException
public FileBytes appendData(byte[] inBytes) throws IOException
IOException
public FileBytes appendData(byte[] inBytes, int inOffset, int inLength) throws IOException
IOException
public FileBytes appendData(FileBytes inFileBytes) throws IOException
IOException
public byte[] getBytes()
public InputStream getDataStream()
public void writeData(OutputStream inStream) throws IOException
IOException
public static void streamAsZipFile(OutputStream inWriteTarget, String inBaseZipFileName, Collection<FileBytes> inFiles) throws IOException
IOException
jataylor@hairyfatguy.com