Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

joelib.io.types
Class Tinker  view Tinker download Tinker.java

java.lang.Object
  extended byjoelib.io.types.Tinker
All Implemented Interfaces:
joelib.io.MoleculeFileType

public class Tinker
extends java.lang.Object
implements joelib.io.MoleculeFileType

Reader/Writer for Tinker files.


Field Summary
private  cformat.PrintfFormat d5
           
private  cformat.PrintfFormat d6
           
private static java.lang.String description
           
private static java.lang.String[] extensions
           
private  cformat.PrintfFormat f12_6
           
private  boolean forceUnixStyle
           
private  java.io.LineNumberReader lnr
           
private static org.apache.log4j.Category logger
          Obtain a suitable logger.
private  cformat.PrintfStream ps
           
private  cformat.PrintfFormat s2
           
private  cformat.PrintfFormat s20
           
 
Constructor Summary
Tinker()
           
 
Method Summary
 void closeReader()
          Description of the Method
 void closeWriter()
          Description of the Method
 boolean getUseUnixStyle()
           
 void initReader(java.io.InputStream is)
          Description of the Method
 void initWriter(java.io.OutputStream os)
          Description of the Method
 java.lang.String inputDescription()
          Description of the Method
 java.lang.String[] inputFileExtensions()
          Description of the Method
 java.lang.String outputDescription()
          Description of the Method
 java.lang.String[] outputFileExtensions()
          Description of the Method
 java.lang.String read()
          Reads an molecule entry as (unparsed) String representation.
 boolean read(joelib.molecule.JOEMol mol)
          Description of the Method
 boolean read(joelib.molecule.JOEMol mol, java.lang.String title)
          Description of the Method
 boolean readable()
          Description of the Method
 void setUseUnixStyle(boolean _flag)
           
 boolean skipReaderEntry()
          Skips an molecule or the rest of a molecule entry to grant the next read(JOEMol mol) invocation a proper starting position.
 boolean write(joelib.molecule.JOEMol mol)
          Description of the Method
 boolean write(joelib.molecule.JOEMol mol, java.lang.String title)
          Description of the Method
 boolean writeable()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Category logger
Obtain a suitable logger.


description

private static final java.lang.String description

extensions

private static final java.lang.String[] extensions

lnr

private java.io.LineNumberReader lnr

d5

private cformat.PrintfFormat d5

d6

private cformat.PrintfFormat d6

f12_6

private cformat.PrintfFormat f12_6

s2

private cformat.PrintfFormat s2

s20

private cformat.PrintfFormat s20

ps

private cformat.PrintfStream ps

forceUnixStyle

private boolean forceUnixStyle
Constructor Detail

Tinker

public Tinker()
Method Detail

setUseUnixStyle

public void setUseUnixStyle(boolean _flag)

getUseUnixStyle

public boolean getUseUnixStyle()

closeReader

public void closeReader()
                 throws java.io.IOException
Description copied from interface: joelib.io.MoleculeFileType
Description of the Method

Specified by:
closeReader in interface joelib.io.MoleculeFileType

closeWriter

public void closeWriter()
                 throws java.io.IOException
Description copied from interface: joelib.io.MoleculeFileType
Description of the Method

Specified by:
closeWriter in interface joelib.io.MoleculeFileType

initReader

public void initReader(java.io.InputStream is)
                throws java.io.IOException
Description of the Method

Specified by:
initReader in interface joelib.io.MoleculeFileType

initWriter

public void initWriter(java.io.OutputStream os)
                throws java.io.IOException
Description of the Method

Specified by:
initWriter in interface joelib.io.MoleculeFileType

inputDescription

public java.lang.String inputDescription()
Description of the Method

Specified by:
inputDescription in interface joelib.io.MoleculeFileType

inputFileExtensions

public java.lang.String[] inputFileExtensions()
Description of the Method

Specified by:
inputFileExtensions in interface joelib.io.MoleculeFileType

outputDescription

public java.lang.String outputDescription()
Description of the Method

Specified by:
outputDescription in interface joelib.io.MoleculeFileType

outputFileExtensions

public java.lang.String[] outputFileExtensions()
Description of the Method

Specified by:
outputFileExtensions in interface joelib.io.MoleculeFileType

read

public java.lang.String read()
                      throws java.io.IOException
Reads an molecule entry as (unparsed) String representation.

Specified by:
read in interface joelib.io.MoleculeFileType

read

public boolean read(joelib.molecule.JOEMol mol)
             throws java.io.IOException
Description of the Method

Specified by:
read in interface joelib.io.MoleculeFileType

read

public boolean read(joelib.molecule.JOEMol mol,
                    java.lang.String title)
             throws java.io.IOException
Description of the Method

Specified by:
read in interface joelib.io.MoleculeFileType

readable

public boolean readable()
Description of the Method

Specified by:
readable in interface joelib.io.MoleculeFileType

skipReaderEntry

public boolean skipReaderEntry()
                        throws java.io.IOException
Description copied from interface: joelib.io.MoleculeFileType
Skips an molecule or the rest of a molecule entry to grant the next read(JOEMol mol) invocation a proper starting position. This method should always be called if you plan to throw an MoleculeIOException.

Specified by:
skipReaderEntry in interface joelib.io.MoleculeFileType

write

public boolean write(joelib.molecule.JOEMol mol)
              throws java.io.IOException
Description of the Method

Specified by:
write in interface joelib.io.MoleculeFileType

write

public boolean write(joelib.molecule.JOEMol mol,
                     java.lang.String title)
              throws java.io.IOException
Description of the Method

Specified by:
write in interface joelib.io.MoleculeFileType

writeable

public boolean writeable()
Description of the Method

Specified by:
writeable in interface joelib.io.MoleculeFileType