public class MoleculeArchiveIOFactory
extends java.lang.Object
Constructor and Description |
---|
MoleculeArchiveIOFactory() |
Modifier and Type | Method and Description |
---|---|
MoleculeArchiveAmazonS3Source |
openAWSS3SourceWithEndpoint(java.lang.String s3Url,
java.lang.String endpointUrl)
Open an
MoleculeArchiveSource for AWS S3. |
MoleculeArchiveFSSource |
openFSSource(java.io.File file)
Open an
MoleculeArchiveSource for MoleculeArchive filesystem. |
MoleculeArchiveSource |
openSource(java.lang.String url)
Open an
MoleculeArchiveSource based on some educated guessing from the url. |
MoleculeArchiveSource |
openSource(java.net.URI uri)
Open an
MoleculeArchiveSource for MoleculeArchive filesystem. |
public MoleculeArchiveAmazonS3Source openAWSS3SourceWithEndpoint(java.lang.String s3Url, java.lang.String endpointUrl) throws java.io.IOException
MoleculeArchiveSource
for AWS S3.s3Url
- url to the amazon s3 objectendpointUrl
- endpoint url for the serverjava.io.IOException
- the io exceptionpublic MoleculeArchiveFSSource openFSSource(java.io.File file) throws java.io.IOException
MoleculeArchiveSource
for MoleculeArchive filesystem.file
- archive filejava.io.IOException
- the io exceptionpublic MoleculeArchiveSource openSource(java.net.URI uri) throws java.io.IOException
MoleculeArchiveSource
for MoleculeArchive filesystem.uri
- archive locationjava.io.IOException
- the io exceptionpublic MoleculeArchiveSource openSource(java.lang.String url) throws java.io.IOException
MoleculeArchiveSource
based on some educated guessing from the url.url
- archive locationjava.io.IOException
- the io exception