public class TLcdFileOutputStreamFactory extends Object implements ILcdOutputStreamFactory
Constructor and Description |
---|
TLcdFileOutputStreamFactory()
Creates a new
TLcdFileOutputStreamFactory that creates buffered streams (at least a 128KB buffer). |
TLcdFileOutputStreamFactory(int aBufferSize)
Creates a new
TLcdFileOutputStreamFactory with the given buffer size. |
Modifier and Type | Method and Description |
---|---|
OutputStream |
createOutputStream(String aDestination)
Creates an output stream for files.
|
int |
getBufferSize()
Returns the buffer size in bytes.
|
public TLcdFileOutputStreamFactory()
TLcdFileOutputStreamFactory
that creates buffered streams (at least a 128KB buffer).public TLcdFileOutputStreamFactory(int aBufferSize)
TLcdFileOutputStreamFactory
with the given buffer size.aBufferSize
- The size of the buffer in bytes.public int getBufferSize()
public OutputStream createOutputStream(String aDestination) throws IOException
createOutputStream
in interface ILcdOutputStreamFactory
aDestination
- the location to which output may be written.IOException
- when the output stream could not be created. For example, when there is no permission
to write the a file at the supplied destination.