Package chemaxon.formats
Class MdlCompressor
java.lang.Object
chemaxon.formats.MdlCompressor
Molfile compression.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCompression flag.static final intDecompression.static final intstatic final intDeprecated, for removal: This API element is subject to removal in a future version.as of Marvin 3.1, there is no possibility to do that -
Constructor Summary
ConstructorsConstructorDescriptionMdlCompressor(InputStream in, OutputStream out, int flags) Create a(n un)compressor for the specified input and output streams. -
Method Summary
-
Field Details
-
DECOMPRESS
public static final int DECOMPRESSDecompression. Default, its value is zero.- Since:
- Marvin 4.0.3, 11/06/2005
- See Also:
-
COMPRESS
public static final int COMPRESSCompression flag.- See Also:
-
SDF
public static final int SDF- See Also:
-
TEXTMODE
Deprecated, for removal: This API element is subject to removal in a future version.as of Marvin 3.1, there is no possibility to do thatWrite OS dependent line.separators instead of '\n'.- See Also:
-
-
Constructor Details
-
MdlCompressor
Create a(n un)compressor for the specified input and output streams.- Parameters:
in- the input molecule streamout- the output molecule streamflags- compression or decompression, binary or text mode- See Also:
-
-
Method Details
-
convert
Compression/decompression- Throws:
IOException
-
convert
(Un)compress the specified molfile or SDfile.- Parameters:
mol- the input molfile or SDfileflags- compression or decompression, binary or text mode- Returns:
- the (un)compressed molfile or SDfile
- Throws:
MolFormatException- if the input is in bad formatIOException- if the input file is ended unexpectedly- See Also:
-
convert
(Un)compress the specified molfile or SDfile.- Parameters:
mol- the input molfile or SDfileflags- compression or decompression, binary or text mode- Returns:
- the (un)compressed molfile or SDfile
- Throws:
MolFormatException- if the input is in bad formatIOException- if the input file is ended unexpectedly- See Also:
-
main
Main program. Usage:java chemaxon.formats.MdlCompressorcommand molfile. Compression: command=c, decompression: command=d.
-