|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.humatic.dsj.sink.Sink
de.humatic.dsj.sink.FileSink
public class FileSink
FileSink is an abstraction of filter assemblies that encode and multiplex data into various types of
files. While the export and filecapture methods in DSMovie, DSCapture & DSDVCam provide export to avi
or Windows Media files, other filetypes can be written via FileSink objects.
To do so, construct a FileSink and call connectSink(...) on the DSFiltergraph subclass in use.
| Field Summary | |
|---|---|
static int |
MKV
FileSink types used in the forType(...) method. |
static int |
MP4
FileSink types used in the forType(...) method. |
static int |
OGG
FileSink types used in the forType(...) method. |
static int |
WAV
FileSink types used in the forType(...) method. |
static int |
WEBM
FileSink types used in the forType(...) method. |
| Fields inherited from class de.humatic.dsj.sink.Sink |
|---|
connected, CONTROLABLE, DISPLAY_LOCAL, DS_NETWORK, DUAL_OUTPUT, DUMP, FILE, flags, FORCE_PREVIEW_BRANCH, LOCAL, majorType, NO_CONTROLS, NO_TRANSCODE, PLAY_OUT, PREVIEW, SHOW_DIALOGS, SHOW_DLG_SAVE, subType, WM_NETWORK |
| Constructor Summary | |
|---|---|
FileSink(java.lang.String outputPath)
The basic constructor creates an "empty" filesink object. |
|
| Method Summary | |
|---|---|
static FileSink |
forType(int fileType,
java.lang.String outputPath)
Creates a predefined FileSink for the given type. You will only get a valid object returned if the native DirectShow filters needed to write the various filetypes are installed on the runtime system. |
static FileSink |
fromXML(java.lang.String name,
java.lang.String outputPath)
Creates a FileSink from a filterchain description layed out in the xml setup file, allowing to easily extend functionality. You will only get a valid object returned if the native DirectShow filters listed in the xml are installed on the runtime system. |
void |
setFileWriter(DSFilterInfo writerInfo)
|
void |
setTargetFile(java.lang.String newOutputPath)
|
java.lang.String |
toString()
|
| Methods inherited from class de.humatic.dsj.sink.Sink |
|---|
getAudioEncoderInfo, getFlags, getMultiplexerInfo, getOutputPath, getVideoEncoderInfo, getWriterInfo, setAudioEncoder, setFlags, setMultiplexer, setVideoEncoder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MP4
public static final int OGG
public static final int MKV
public static final int WEBM
public static final int WAV
| Constructor Detail |
|---|
public FileSink(java.lang.String outputPath)
| Method Detail |
|---|
public static FileSink fromXML(java.lang.String name,
java.lang.String outputPath)
public static FileSink forType(int fileType,
java.lang.String outputPath)
throws DSJException
DSJExceptionpublic void setFileWriter(DSFilterInfo writerInfo)
public void setTargetFile(java.lang.String newOutputPath)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||