|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.formats.MdlCompressor
Molfile compression.
| Field Summary | |
static int |
COMPRESS
This flag must be specified for compression. |
static int |
SDF
|
static int |
TEXTMODE
Deprecated. as of Marvin 3.1, there is no possibility to do that |
| Constructor Summary | |
MdlCompressor(java.io.InputStream in,
java.io.OutputStream out,
int flags)
Create a(n un)compressor for the specified input and output streams. |
|
| Method Summary | |
boolean |
convert()
Compression/decompression |
static byte[] |
convert(byte[] mol,
int flags)
(Un)compress the specified molfile or SDfile. |
static java.lang.String |
convert(java.lang.String mol,
int flags)
(Un)compress the specified molfile or SDfile. |
static void |
main(java.lang.String[] args)
Main program. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int COMPRESS
public static int SDF
public static int TEXTMODE
| Constructor Detail |
public MdlCompressor(java.io.InputStream in,
java.io.OutputStream out,
int flags)
in - the input molecule streamout - the output molecule streamflags - compression or decompression, binary or text modeCOMPRESS| Method Detail |
public boolean convert()
throws java.io.IOException
java.io.IOException
public static byte[] convert(byte[] mol,
int flags)
throws java.io.IOException
mol - the input molfile or SDfileflags - compression or decompression, binary or text mode
chemaxon.formats.MolFormatException - if the input is in bad format
java.io.IOException - if the input file is ended unexpectedlyCOMPRESS
public static java.lang.String convert(java.lang.String mol,
int flags)
throws java.io.IOException
mol - the input molfile or SDfileflags - compression or decompression, binary or text mode
chemaxon.formats.MolFormatException - if the input is in bad format
java.io.IOException - if the input file is ended unexpectedlyCOMPRESSpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||