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 ContentProvider
public InputStream createInputStream() throws IOException
ContentProvider
createInputStream
in interface ContentProvider
IOException
public boolean hasContent()
hasContent
in interface ContentProvider
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.