public class MJpegImageStream
extends stream.io.AbstractStream
| Modifier and Type | Field and Description |
|---|---|
protected stream.util.ByteSize |
bufferSize |
protected boolean |
continuous |
static int |
DEFAULT_FRAME_BUFFER |
static int |
DEFAULT_READ_BUFFER |
protected stream.util.ByteSize |
readBufferSize |
protected JpegStream |
stream |
| Constructor and Description |
|---|
MJpegImageStream(InputStream in) |
MJpegImageStream(stream.io.SourceURL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
stream.util.ByteSize |
getBufferSize() |
stream.util.ByteSize |
getReadBufferSize() |
void |
info() |
void |
init() |
boolean |
isContinuous() |
boolean |
isIncludeRawData() |
static void |
main(String[] args) |
stream.Data |
readNext() |
void |
setBufferSize(stream.util.ByteSize bufferSize) |
void |
setContinuous(boolean continuous) |
void |
setIncludeRawData(boolean includeRawData) |
void |
setReadBufferSize(stream.util.ByteSize readBufferSize) |
public static final int DEFAULT_READ_BUFFER
public static final int DEFAULT_FRAME_BUFFER
protected JpegStream stream
protected stream.util.ByteSize readBufferSize
protected stream.util.ByteSize bufferSize
protected boolean continuous
public MJpegImageStream(stream.io.SourceURL url)
throws Exception
Exceptionpublic MJpegImageStream(InputStream in) throws Exception
Exceptionpublic stream.util.ByteSize getReadBufferSize()
public void setReadBufferSize(stream.util.ByteSize readBufferSize)
readBufferSize - the readBufferSize to setpublic stream.util.ByteSize getBufferSize()
public void setBufferSize(stream.util.ByteSize bufferSize)
bufferSize - the bufferSize to setpublic boolean isContinuous()
public void setContinuous(boolean continuous)
continuous - the continuous to setpublic void init()
throws Exception
init in interface stream.io.Sourceinit in class stream.io.AbstractStreamExceptionAbstractStream.init()public stream.Data readNext()
throws Exception
readNext in class stream.io.AbstractStreamExceptionAbstractStream.readNext()public void close()
throws Exception
close in interface stream.io.Sourceclose in class stream.io.AbstractStreamExceptionAbstractStream.close()public boolean isIncludeRawData()
public void setIncludeRawData(boolean includeRawData)
includeRawData - the includeRawData to setpublic void info()
Copyright © 2015. All rights reserved.