@Immutable public class FileSystemByteStreamProvider extends Object implements IInputStreamProvider, IOutputStreamProvider
| Constructor and Description |
|---|
FileSystemByteStreamProvider(File aBasePath) |
FileSystemByteStreamProvider(String sBasePath) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
File |
getBasePath() |
InputStream |
getInputStream(String sName)
Get the input stream from the given name.
|
OutputStream |
getOutputStream(String sName,
EAppend eAppend)
Get the output stream from the given name.
|
int |
hashCode() |
String |
toString() |
@Nullable public InputStream getInputStream(@Nonnull String sName)
IInputStreamProvidergetInputStream in interface IInputStreamProvidersName - The name to be resolved. May not be null.null if resolving failed.@Nullable public OutputStream getOutputStream(@Nonnull String sName, @Nonnull EAppend eAppend)
IOutputStreamProvidergetOutputStream in interface IOutputStreamProvidersName - The name to be resolved. May not be null.eAppend - Appending mode. May not be null.null if resolving failed.Copyright © 2014–2016 Philip Helger. All rights reserved.