public class HistoneStreamResource extends Object implements Resource<InputStream>
| Constructor and Description |
|---|
HistoneStreamResource(InputStream stream,
String baseHref,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getBaseHref()
Return a base href for this resource.
|
InputStream |
getContent() |
String |
getContentType() |
public HistoneStreamResource(InputStream stream, String baseHref, String contentType)
public InputStream getContent() throws IOException
getContent in interface Resource<InputStream>IOException - if the content could not be openedpublic String getBaseHref()
ResourcegetBaseHref in interface Resource<InputStream>public String getContentType()
getContentType in interface Resource<InputStream>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017. All rights reserved.