Class MolConverter.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Constructs an empty Builder object.
    • Method Detail

      • clear

        public void clear()
        Clears all settings.
      • addInput

        public void addInput​(InputStream is,
                             String opts)
        Adds an input stream.
        Parameters:
        is - the input stream
        opts - import options or null
      • addInput

        public void addInput​(File f,
                             String opts)
        Adds an input file.
        Parameters:
        f - the file
        opts - import options or null
      • addInput

        public void addInput​(String fname,
                             String opts)
        Adds an input file.
        Parameters:
        fname - the file's path
        opts - import options or null
      • getInputCount

        public int getInputCount()
        Gets the number of input files/streams.
        Returns:
        the number of input files/streams
      • setOutput

        public void setOutput​(OutputStream out,
                              String fmtopts)
        Sets the output stream.
        Parameters:
        out - the output stream
        fmtopts - file format and options (or null)
      • setOutput

        public void setOutput​(File f,
                              String fmtopts)
        Sets the output file.
        Parameters:
        f - the output file
        fmtopts - file format and options (or null)
      • setOutput

        public void setOutput​(String fname,
                              String fmtopts)
        Sets the output file.
        Parameters:
        fname - the output file's path
        fmtopts - file format and options (or null)
      • setEncodings

        public void setEncodings​(String enc)
        Sets the input and/or output encoding.
        Parameters:
        enc - the input and/or output encodings in INCHARSET..OUTCHARSET format
      • setFields

        public void setFields​(String[] fields)
        Sets the included fields to be shown in a table.
        Parameters:
        fields - the fields
      • clean

        public MolConverter.Builder clean​(int dim)
        Enables cleaning.
        Parameters:
        dim - cleaning dimension, 2 or 3
        Returns:
        this builder object
        Since:
        Marvin 5.2.4, 07/07/2009
      • clean

        public MolConverter.Builder clean​(int dim,
                                          String opts)
        Enables cleaning.
        Parameters:
        dim - cleaning dimension, 2 or 3
        opts - cleaning options
        Returns:
        this builder object
        Since:
        Marvin 5.2.4, 07/07/2009
      • clone

        protected Object clone()
        Clones the object.
        Overrides:
        clone in class Object