|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
net.sf.jmatchparser.util.split.SplitOutputStream
public class SplitOutputStream
Output stream that can split the output into multiple streams/files, and may
optionally add a header and/or footer to each stream. A SplitRule
is
used to determine the split positions.
Nested Class Summary | |
---|---|
static interface |
SplitOutputStream.StreamFactory
Factory used to create new streams whenever the stream has to be split. |
Constructor Summary | |
---|---|
SplitOutputStream(SplitOutputStream.StreamFactory factory,
SplitRule rule)
Create a new split output stream. |
Method Summary | |
---|---|
void |
close()
|
void |
finishBlock()
Finish a header or footer block. |
void |
flush()
|
void |
startFooterBlock()
Start the footer block. |
void |
startHeaderBlock()
Start the header block. |
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.io.OutputStream |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SplitOutputStream(SplitOutputStream.StreamFactory factory, SplitRule rule)
factory
- Factory used to create streamsrule
- Split rule to determine when to split the streamMethod Detail |
---|
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void startHeaderBlock()
finishBlock()
is called.
public void startFooterBlock()
finishBlock()
is called.
public void finishBlock() throws IOException
IOException
startHeaderBlock()
,
startFooterBlock()
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |