Package com.wowza.io
Interface ITextReader
- All Known Subinterfaces:
IDvrTextReader
public interface ITextReader
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the media assetbooleanexists()Does the media asset existGet the basePath for the random access readerGet the media namegetPath()Get the unique path to the media asset itemvoidinit(IApplicationInstance appInstance, IMediaStream stream, String basePath, String mediaName) booleanisOpen()Is the media asset openlongReturn the lastModified date (same format as File.lastModified)longlength()Get the media asset length in bytesvoidopen()Open the media assetintread(char[] buf, int off, int size) booleanready()
-
Method Details
-
init
-
open
Open the media asset- Throws:
IOException
-
ready
- Throws:
IOException
-
close
Close the media asset- Throws:
IOException
-
isOpen
boolean isOpen()Is the media asset open- Returns:
- true if media asset is open
-
read
- Throws:
IOException
-
getBasePath
String getBasePath()Get the basePath for the random access reader- Returns:
- basePath for the random access reader
-
getMediaName
String getMediaName()Get the media name- Returns:
- media name
-
exists
boolean exists()Does the media asset exist- Returns:
- true if media assets exists
-
lastModified
long lastModified()Return the lastModified date (same format as File.lastModified)- Returns:
- lastModified date (same format as File.lastModified)
-
length
long length()Get the media asset length in bytes- Returns:
- media asset length in bytes
-
getPath
String getPath()Get the unique path to the media asset item- Returns:
- unique path to the media asset item
-