Closeable, AutoCloseablepublic class Resource extends FilterInputStream
in| Constructor | Description |
|---|---|
Resource(InputStream inputStream) |
Constructs a resource of 'unknown' type.
|
Resource(String type,
InputStream inputStream) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getType() |
available, close, mark, markSupported, read, read, read, reset, skipreadAllBytes, readNBytes, transferTopublic Resource(String type, InputStream inputStream)
type - resource typeinputStream - input stream of the resourcepublic Resource(InputStream inputStream)
inputStream - input stream of the resourcepublic String getType()
Copyright © 2018 Apache Software Foundation. All rights reserved.