Package com.wowza.io
Interface ITextWriter
- 
- All Known Subinterfaces:
- IDvrTextWriter
 
 public interface ITextWriter
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the media assetbooleanexists()Does the media asset existStringgetBasePath()Get the basePath for the random access readerStringgetMediaName()Get the media nameStringgetPath()Get the unique path to the media asset itemvoidinit(IApplicationInstance appInstance, IMediaStream stream, String basePath, String mediaName)booleanisAppend()booleanisOpen()Is the media asset openlonglastModified()Return the lastModified date (same format as File.lastModified)longlength()Get the media asset length in bytesvoidopen()Open the media assetvoidsetAppend(boolean append)voidwrite(char[] cbuf)voidwrite(char[] cbuf, int off, int len)voidwrite(String str)voidwrite(String str, int off, int len)
 
- 
- 
- 
Method Detail- 
initvoid init(IApplicationInstance appInstance, IMediaStream stream, String basePath, String mediaName) 
 - 
isAppendboolean isAppend() 
 - 
setAppendvoid setAppend(boolean append) 
 - 
openvoid open() throws java.io.IOException Open the media asset- Throws:
- java.io.IOException
 
 - 
closevoid close() throws java.io.IOExceptionClose the media asset- Throws:
- java.io.IOException
 
 - 
isOpenboolean isOpen() Is the media asset open- Returns:
- true if media asset is open
 
 - 
writevoid write(char[] cbuf, int off, int len) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
writevoid write(char[] cbuf) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
writevoid write(String str, int off, int len) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
writevoid write(String str) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
getBasePathString getBasePath() Get the basePath for the random access reader- Returns:
- basePath for the random access reader
 
 - 
getMediaNameString getMediaName() Get the media name- Returns:
- media name
 
 - 
existsboolean exists() Does the media asset exist- Returns:
- true if media assets exists
 
 - 
lastModifiedlong lastModified() Return the lastModified date (same format as File.lastModified)- Returns:
- lastModified date (same format as File.lastModified)
 
 - 
lengthlong length() Get the media asset length in bytes- Returns:
- media asset length in bytes
 
 - 
getPathString getPath() Get the unique path to the media asset item- Returns:
- unique path to the media asset item
 
 
- 
 
-