|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.util.ByteArrayDataSource
public final class ByteArrayDataSource
The ByteArrayDataSource
class is a utility class for IFileHandle
data.
Constructor Summary | |
---|---|
ByteArrayDataSource(String pName,
byte[] pContent)
Constructs a new ByteArrayDataSource . |
|
ByteArrayDataSource(String pName,
InputStream pContent)
Constructs a new ByteArrayDataSource . |
Method Summary | |
---|---|
String |
getContentType()
|
FileTypeMap |
getFileTypeMap()
Gets the FileTypeMap. |
InputStream |
getInputStream()
|
String |
getName()
|
OutputStream |
getOutputStream()
|
void |
setFileTypeMap(FileTypeMap pFileTypeMap)
Sets the FileTypeMap. |
void |
setName(String pName)
Sets the name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteArrayDataSource(String pName, byte[] pContent)
ByteArrayDataSource
.
pName
- the name.pContent
- the file handle.public ByteArrayDataSource(String pName, InputStream pContent)
ByteArrayDataSource
.
pName
- the name.pContent
- the file handle.Method Detail |
---|
public String getContentType()
getContentType
in interface DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public String getName()
getName
in interface DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
public FileTypeMap getFileTypeMap()
public void setFileTypeMap(FileTypeMap pFileTypeMap)
pFileTypeMap
- the FileTypeMap.public void setName(String pName)
pName
- the name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |