public class SimpleRepositoryFileData extends Object implements IRepositoryFileData
IRepositoryFileData
that has an input stream, encoding, and optional MIME type.NODE_CONTENT_TYPE, SAMPLE_CONTENT_TYPE, SIMPLE_CONTENT_TYPE
Constructor and Description |
---|
SimpleRepositoryFileData(InputStream stream,
String encoding,
String mimeType) |
Modifier and Type | Method and Description |
---|---|
long |
getDataSize() |
String |
getEncoding()
Returns the character encoding of the bytes in the data stream.
|
InputStream |
getInputStream()
Returns a stream for reading the data in this file.
|
String |
getMimeType()
Returns the MIME type of the data in this file.
|
InputStream |
getStream()
Deprecated.
Use
getInputStream() instead. Proguard likes to obfuscate any method named getStream that
returns an InputStream, even if you tell it not to via keep rules. |
String |
toString() |
public SimpleRepositoryFileData(InputStream stream, String encoding, String mimeType)
@Deprecated public InputStream getStream()
getInputStream()
instead. Proguard likes to obfuscate any method named getStream that
returns an InputStream, even if you tell it not to via keep rules.null
)public InputStream getInputStream()
null
)public String getEncoding()
null
for non-character data.public String getMimeType()
public long getDataSize()
getDataSize
in interface IRepositoryFileData
Copyright © 2018 Hitachi Vantara. All rights reserved.