Skip to content

Commit

Permalink
Merge pull request #166 from cdk/feature/V3000-writer
Browse files Browse the repository at this point in the history
Support for writing Ctab V3000. Non-query features of atom and bond b…
  • Loading branch information
egonw committed Oct 11, 2015
2 parents 46263c5 + 1fec7fd commit 5902bf1
Show file tree
Hide file tree
Showing 4 changed files with 1,234 additions and 1 deletion.
Expand Up @@ -29,6 +29,10 @@
public enum SgroupKey {
CtabType,
CtabSubType,
/**
* Not to be confused with the subscript key
* this is Sgroup label not the bracket label (e.g. 'n').
*/
CtabLabel,
CtabExpansion,
CtabCorrespondence,
Expand Down
Expand Up @@ -30,6 +30,7 @@
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.nio.charset.StandardCharsets;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
Expand Down Expand Up @@ -210,7 +211,7 @@ public MDLV2000Writer(Writer out) {
* @param output The OutputStream to write to
*/
public MDLV2000Writer(OutputStream output) {
this(new OutputStreamWriter(output));
this(new OutputStreamWriter(output, StandardCharsets.UTF_8));
}

public MDLV2000Writer() {
Expand Down

0 comments on commit 5902bf1

Please sign in to comment.