|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jmatchparser.util.split.FileOutputStreamFactory
public class FileOutputStreamFactory
Output stream factory that creates file output streams.
Constructor Summary | |
---|---|
FileOutputStreamFactory(File directory,
Format filenameFormat,
int firstNumber)
Create a new file output stream factory that creates files in a given directory in a given format. |
|
FileOutputStreamFactory(File directory,
String filenameFormat,
int firstNumber)
Create a new file output stream factory that creates files in a given directory in a given format. |
Method Summary | |
---|---|
OutputStream |
createOutputStream(int index)
Create a new stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileOutputStreamFactory(File directory, String filenameFormat, int firstNumber)
directory
- Directory to put the files into.filenameFormat
- Format string used to format the file name, as defined by
MessageFormat
firstNumber
- Number to use for the first streampublic FileOutputStreamFactory(File directory, Format filenameFormat, int firstNumber)
directory
- Directory to put the files into.filenameFormat
- Format
used to format the file namefirstNumber
- Number to use for the first streamMethod Detail |
---|
public OutputStream createOutputStream(int index) throws FileNotFoundException
SplitOutputStream.StreamFactory
createOutputStream
in interface SplitOutputStream.StreamFactory
index
- Zero-based index of the stream
FileNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |