public class StaticContentProvider extends Object implements ContentProvider
NULL_CONTENT| Constructor and Description |
|---|
StaticContentProvider(byte[] data) |
StaticContentProvider(String data) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream()
Create a new input stream
Note: The caller must close the stream |
long |
getSize() |
boolean |
hasContent() |
public StaticContentProvider(byte[] data)
public StaticContentProvider(String data)
public long getSize()
getSize in interface ContentProviderpublic InputStream createInputStream() throws IOException
ContentProvidercreateInputStream in interface ContentProviderIOExceptionpublic boolean hasContent()
hasContent in interface ContentProviderCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.