Package com.luciad.io

Class TLcdFileOutputStreamFactory

java.lang.Object
com.luciad.io.TLcdFileOutputStreamFactory
All Implemented Interfaces:
ILcdOutputStreamFactory

public class TLcdFileOutputStreamFactory extends Object implements ILcdOutputStreamFactory
Creates output streams to files, wrapped with a buffered output stream with the given buffer size.
Since:
8.0
  • Constructor Details

    • TLcdFileOutputStreamFactory

      public TLcdFileOutputStreamFactory()
      Creates a new TLcdFileOutputStreamFactory that creates buffered streams (at least a 128KB buffer).
    • TLcdFileOutputStreamFactory

      public TLcdFileOutputStreamFactory(int aBufferSize)
      Creates a new TLcdFileOutputStreamFactory with 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

      public OutputStream createOutputStream(String aDestination) throws IOException
      Creates an output stream for files.
      Specified by:
      createOutputStream in interface ILcdOutputStreamFactory
      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.