public class MmtfActions extends Object
| Constructor and Description |
|---|
MmtfActions() |
| Modifier and Type | Method and Description |
|---|---|
static Structure |
readFromFile(Path filePath)
Get a Structure object from a mmtf file.
|
static Structure |
readFromInputStream(InputStream inStream)
Read a Biojava structure from an
InputStream |
static Structure |
readFromWeb(String pdbId)
Get a Biojava structure from the mmtf REST service.
|
static void |
writeToFile(Structure structure,
Path path)
Write a Structure object to a file.
|
static void |
writeToOutputStream(Structure structure,
OutputStream outputStream)
Write a Structure object to an
OutputStream |
public MmtfActions()
public static Structure readFromFile(Path filePath) throws IOException
filePath - the mmtf fileIOExceptionpublic static void writeToFile(Structure structure, Path path) throws IOException
structure - the Structure to writepath - the file to writeIOExceptionpublic static void writeToOutputStream(Structure structure, OutputStream outputStream) throws IOException
OutputStreamstructure - the Structure to writeoutputStream - the OutputStream to write toIOException - an error transferring the byte[]public static Structure readFromWeb(String pdbId) throws IOException
pdbId - the PDB code of the required structureIOExceptionpublic static Structure readFromInputStream(InputStream inStream) throws IOException
InputStreaminStream - the InputStream to read fromStructureIOExceptionCopyright © 2000–2018 BioJava. All rights reserved.