public class MmtfActions
extends java.lang.Object
| Constructor and Description |
|---|
MmtfActions() |
| Modifier and Type | Method and Description |
|---|---|
static Structure |
readFromFile(java.nio.file.Path filePath)
Get a Structure object from a mmtf file.
|
static Structure |
readFromInputStream(java.io.InputStream inStream)
Read a Biojava structure from an
InputStream |
static Structure |
readFromWeb(java.lang.String pdbId)
Get a Biojava structure from the mmtf REST service.
|
static void |
writeToFile(Structure structure,
java.nio.file.Path path)
Write a Structure object to a file.
|
static void |
writeToOutputStream(Structure structure,
java.io.OutputStream outputStream)
Write a Structure object to an
OutputStream |
public static Structure readFromFile(java.nio.file.Path filePath) throws java.io.IOException
filePath - the mmtf filejava.io.IOExceptionpublic static void writeToFile(Structure structure, java.nio.file.Path path) throws java.io.IOException
structure - the Structure to writepath - the file to writejava.io.IOExceptionpublic static void writeToOutputStream(Structure structure, java.io.OutputStream outputStream) throws java.io.IOException
OutputStreamstructure - the Structure to writeoutputStream - the OutputStream to write tojava.io.IOException - an error transferring the byte[]public static Structure readFromWeb(java.lang.String pdbId) throws java.io.IOException
pdbId - the PDB code of the required structurejava.io.IOExceptionCopyright © 2000-2020 BioJava. All Rights Reserved.