Package com.wowza.io
Interface ITextReader
-
- All Known Subinterfaces:
IDvrTextReader
public interface ITextReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close the media assetboolean
exists()
Does the media asset existString
getBasePath()
Get the basePath for the random access readerString
getMediaName()
Get the media nameString
getPath()
Get the unique path to the media asset itemvoid
init(IApplicationInstance appInstance, IMediaStream stream, String basePath, String mediaName)
boolean
isOpen()
Is the media asset openlong
lastModified()
Return the lastModified date (same format as File.lastModified)long
length()
Get the media asset length in bytesvoid
open()
Open the media assetint
read(char[] buf, int off, int size)
boolean
ready()
-
-
-
Method Detail
-
init
void init(IApplicationInstance appInstance, IMediaStream stream, String basePath, String mediaName)
-
open
void open() throws java.io.IOException
Open the media asset- Throws:
java.io.IOException
-
ready
boolean ready() throws java.io.IOException
- Throws:
java.io.IOException
-
close
void close() throws java.io.IOException
Close the media asset- Throws:
java.io.IOException
-
isOpen
boolean isOpen()
Is the media asset open- Returns:
- true if media asset is open
-
read
int read(char[] buf, int off, int size) throws java.io.IOException
- Throws:
java.io.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
-
-