public class CifFileConverter extends Object
Constructor and Description |
---|
CifFileConverter() |
Modifier and Type | Method and Description |
---|---|
static Structure |
fromCifFile(org.rcsb.cif.model.CifFile cifFile)
Convert CifFile to Structure without any FileParsingParameters.
|
static Structure |
fromCifFile(org.rcsb.cif.model.CifFile cifFile,
FileParsingParameters parameters)
Convert CifFile to Structure.
|
static Structure |
fromInputStream(InputStream inputStream)
Convert InputStream to Structure without any FileParsingParameters.
|
static Structure |
fromInputStream(InputStream inputStream,
FileParsingParameters parameters)
Convert InputStream to Structure.
|
static Structure |
fromPath(Path path)
Read data from a file and convert to Structure without any FileParsingParameters.
|
static Structure |
fromPath(Path path,
FileParsingParameters parameters)
Read data from a file and convert to Structure.
|
static Structure |
fromURL(URL url)
Get data from a URL and convert to Structure without any FileParsingParameters.
|
static byte[] |
toBinary(Structure structure)
Convert a structure to BCIF format.
|
static void |
toBinaryFile(Structure structure,
Path path)
Write a structure to a BCIF file.
|
static org.rcsb.cif.model.CifFile |
toCifFile(Structure structure)
Convert Structure to CifFile.
|
static String |
toText(Structure structure)
Convert a structure to mmCIF format.
|
static void |
toTextFile(Structure structure,
Path path)
Write a structure to a CIF file.
|
public CifFileConverter()
public static Structure fromPath(Path path) throws IOException
path
- the source of information - can be gzipped or binary or text dataIOException
public static Structure fromPath(Path path, FileParsingParameters parameters) throws IOException
path
- the source of information - can be gzipped or binary or text dataparameters
- parameters for parsingIOException
public static Structure fromURL(URL url) throws IOException
url
- the source of information - can be gzipped or binary or text dataIOException
- thrown when reading failspublic static Structure fromInputStream(InputStream inputStream) throws IOException
inputStream
- the InputStream of information - can be gzipped or binary or text dataIOException
- thrown when reading failsfromInputStream(InputStream, FileParsingParameters)
public static Structure fromInputStream(InputStream inputStream, FileParsingParameters parameters) throws IOException
inputStream
- the InputStream of information - can be gzipped or binary or text dataparameters
- parameters for parsingIOException
- thrown when reading failspublic static Structure fromCifFile(org.rcsb.cif.model.CifFile cifFile)
cifFile
- the sourcefromCifFile(CifFile, FileParsingParameters)
public static Structure fromCifFile(org.rcsb.cif.model.CifFile cifFile, FileParsingParameters parameters)
cifFile
- the sourceparameters
- parameters for parsingpublic static void toTextFile(Structure structure, Path path) throws IOException
structure
- the sourcepath
- where to write toIOException
- thrown when writing failspublic static void toBinaryFile(Structure structure, Path path) throws IOException
structure
- the sourcepath
- where to write toIOException
- thrown when writing failspublic static byte[] toBinary(Structure structure) throws IOException
structure
- the sourceIOException
- thrown when writing failspublic static String toText(Structure structure) throws IOException
structure
- the sourceIOException
- thrown when writing failsCopyright © 2000–2019 BioJava. All rights reserved.