public final class Writer extends Object
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
static OutputStream |
createOutputStream(String fileName,
CompressionType compressionType)
Construct a new OutputStream that performs a requested data compression.
|
public static OutputStream createOutputStream(String fileName, CompressionType compressionType) throws IOException
fileName
- String; name of the file that will be created (possiblecompressionType
- CompressionType; the type of data compression to useIOException
- when the requested file could not be opened for writing, or the compression type is unknownCopyright © 2014–2019 Delft University of Technology. All rights reserved.