Package org.biojava.bio.structure.io
Class FileConvert
- java.lang.Object
-
- org.biojava.bio.structure.io.FileConvert
-
public class FileConvert extends java.lang.Object
Methods to convert a structure object into different file formats.- Since:
- 1.4
- Author:
- Andreas Prlic
-
-
Constructor Summary
Constructors Constructor Description FileConvert(Structure struc)
Constructs a FileConvert object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doPrintConnections()
returns if the Connections should be added default is true;void
setPrintConnections(boolean printConnections)
enable/disable printing of connections connections are sometimes buggy in PDB files so there are some cases where one might turn this off.void
toDASStructure(XMLWriter xw)
convert a protein Structure to a DAS Structure XML response .java.lang.String
toPDB()
Convert a structure into a PDB file.
-
-
-
Constructor Detail
-
FileConvert
public FileConvert(Structure struc)
Constructs a FileConvert object.- Parameters:
struc
- a Structure object
-
-
Method Detail
-
doPrintConnections
public boolean doPrintConnections()
returns if the Connections should be added default is true;- Returns:
- if the printConnections flag is set
-
setPrintConnections
public void setPrintConnections(boolean printConnections)
enable/disable printing of connections connections are sometimes buggy in PDB files so there are some cases where one might turn this off.- Parameters:
printConnections
-
-
toPDB
public java.lang.String toPDB()
Convert a structure into a PDB file.- Returns:
- a String representing a PDB file.
-
toDASStructure
public void toDASStructure(XMLWriter xw) throws java.io.IOException
convert a protein Structure to a DAS Structure XML response .- Parameters:
xw
- a XMLWriter object- Throws:
java.io.IOException
- ...
-
-