|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
org.xeustechnologies.jtar.TarOutputStream
public class TarOutputStream
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
TarOutputStream(java.io.OutputStream out)
|
|
| Method Summary | |
|---|---|
void |
close()
Appends the EOF record and closes the stream |
protected void |
closeCurrentEntry()
Closes the current tar entry |
protected void |
pad()
Pads the last content block |
void |
putNextEntry(TarEntry entry)
Writes the next tar entry header on the stream |
void |
write(byte[] b,
int off,
int len)
Checks if the bytes being written exceed the current entry size. |
void |
write(int b)
Writes a byte to the stream and updates byte counters |
| Methods inherited from class java.io.FilterOutputStream |
|---|
flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TarOutputStream(java.io.OutputStream out)
| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.FilterOutputStreamjava.io.IOExceptionFilterOutputStream.close()
public void write(int b)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionFilterOutputStream.write(int)
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionFilterOutputStream.write(byte[], int, int)
public void putNextEntry(TarEntry entry)
throws java.io.IOException
entry -
java.io.IOException
protected void closeCurrentEntry()
throws java.io.IOException
java.io.IOException
protected void pad()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||