public class TestInputStreamFactory extends Object
Constructor and Description |
---|
TestInputStreamFactory(IRI baseDir,
IRI getBaseDir) |
TestInputStreamFactory(IRI baseDir,
String propDir) |
TestInputStreamFactory(IRI baseDir,
ZipFile zip) |
Modifier and Type | Method and Description |
---|---|
InputStream |
fullyOpen(String str)
opens the file, and really does it - not a delayed
lazy opening.
|
IRI |
getBase() |
String |
getCreationJava() |
IRI |
getMapBase() |
InputStream |
open(IRI uri)
A lazy open.
|
InputStream |
open(String str)
A lazy open.
|
OutputStream |
openOutput(String str) |
boolean |
savable() |
public TestInputStreamFactory(IRI baseDir, IRI getBaseDir)
baseDir
- A prefix of all URLs accessed through this factory.getBaseDir
- Replace the baseDir into getBaseDir before opening any URL.public TestInputStreamFactory(IRI baseDir, ZipFile zip)
baseDir
- A prefix of all URLs accessed through this factory.zip
- To open a URL remove the baseDir from the URL and get the named file from the zip.public IRI getBase()
public InputStream open(String str)
str
- The URI to openpublic InputStream fullyOpen(String str) throws IOException
str
- the URI to openIOException
public InputStream open(IRI uri)
uri
- to be opened.public boolean savable()
public OutputStream openOutput(String str)
public String getCreationJava()
public IRI getMapBase()
Licenced under the Apache License, Version 2.0