public class ByteDataSource extends PullDataSource
Modifier and Type | Field and Description |
---|---|
protected ContentDescriptor |
contentType |
protected String |
fName |
protected edu.xtec.jclic.media.ByteDataSource.ByteSourceStream[] |
pss |
DURATION_UNBOUNDED, DURATION_UNKNOWN
Constructor and Description |
---|
ByteDataSource(byte[] src,
String name) |
ByteDataSource(ExtendedByteArrayInputStream is) |
ByteDataSource(InputStream is,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
void |
disconnect() |
ByteDataSource |
duplicate() |
ContentDescriptor |
getContentDescriptor(String fName) |
String |
getContentType() |
Object |
getControl(String str) |
Object[] |
getControls() |
Time |
getDuration() |
String |
getFName() |
ExtendedByteArrayInputStream |
getInputStream() |
PullSourceStream[] |
getStreams() |
void |
setFName(String name) |
void |
start() |
void |
stop() |
getLocator, initCheck, setLocator
protected edu.xtec.jclic.media.ByteDataSource.ByteSourceStream[] pss
protected ContentDescriptor contentType
protected String fName
public ByteDataSource(ExtendedByteArrayInputStream is) throws IOException
IOException
public ByteDataSource(InputStream is, String name) throws IOException
IOException
public ByteDataSource(byte[] src, String name) throws IOException
IOException
public ByteDataSource duplicate() throws IOException
IOException
public ExtendedByteArrayInputStream getInputStream()
public String getFName()
public void setFName(String name)
public Object[] getControls()
public void connect() throws IOException
connect
in class DataSource
IOException
public void disconnect()
disconnect
in class DataSource
public void start() throws IOException
start
in class DataSource
IOException
public Time getDuration()
public void stop() throws IOException
stop
in class DataSource
IOException
public String getContentType()
getContentType
in class DataSource
public PullSourceStream[] getStreams()
getStreams
in class PullDataSource
public ContentDescriptor getContentDescriptor(String fName)
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.