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 fileIOException
public static void writeToFile(Structure structure, Path path) throws IOException
structure
- the Structure to writepath
- the file to writeIOException
public static void writeToOutputStream(Structure structure, OutputStream outputStream) throws IOException
OutputStream
structure
- 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 structureIOException
public static Structure readFromInputStream(InputStream inStream) throws IOException
InputStream
inStream
- the InputStream
to read fromStructure
IOException
Copyright © 2000–2019 BioJava. All rights reserved.