|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.nodes.content.StreamContentContainer
This is a utility class used by content handlers. Content handlers return objects that are reused by nodes in the scene. This object type can be used to pass an InputStream to the nodes. Each client will request a new input stream using getInputStream.
| Constructor Summary | |
StreamContentContainer(java.io.InputStream inputStream,
int length,
int format,
int frequency)
Construct a new content container from an input stream. |
|
| Method Summary | |
byte[] |
getBuffer()
Returns a direct reference to the underlying buffer. |
int |
getFormat()
Get the format. |
int |
getFrequency()
Get the frequency of the content. |
java.io.InputStream |
getInputStream()
Returns an input stream associated with this resource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StreamContentContainer(java.io.InputStream inputStream,
int length,
int format,
int frequency)
throws java.io.IOException
If length bytes cannot be read from the input stream, an IOException will be thrown.
inputStream - input stream to read data fromlength - number of bytes of data to read from the input streamformat - The format, defined in ALConstantsfrequency - The frequency
java.io.IOException - either too few bytes were read or read failed| Method Detail |
public java.io.InputStream getInputStream()
public byte[] getBuffer()
public int getFormat()
public int getFrequency()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||