Package com.luciad.io
Class TLcdFileOutputStreamFactory
java.lang.Object
com.luciad.io.TLcdFileOutputStreamFactory
- All Implemented Interfaces:
ILcdOutputStreamFactory
Creates output streams to files, wrapped with a buffered output stream with the given buffer size.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdFileOutputStreamFactorythat creates buffered streams (at least a 128KB buffer).TLcdFileOutputStreamFactory(int aBufferSize) Creates a newTLcdFileOutputStreamFactorywith the given buffer size. -
Method Summary
Modifier and TypeMethodDescriptioncreateOutputStream(String aDestination) Creates an output stream for files.intReturns the buffer size in bytes.
-
Constructor Details
-
TLcdFileOutputStreamFactory
public TLcdFileOutputStreamFactory()Creates a newTLcdFileOutputStreamFactorythat creates buffered streams (at least a 128KB buffer). -
TLcdFileOutputStreamFactory
public TLcdFileOutputStreamFactory(int aBufferSize) Creates a newTLcdFileOutputStreamFactorywith the given buffer size.- Parameters:
aBufferSize- The size of the buffer in bytes.
-
-
Method Details
-
getBufferSize
public int getBufferSize()Returns the buffer size in bytes.- Returns:
- the buffer size in bytes.
-
createOutputStream
Creates an output stream for files.- Specified by:
createOutputStreamin interfaceILcdOutputStreamFactory- Parameters:
aDestination- the location to which output may be written.- Returns:
- an output stream for files.
- Throws:
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.
-