Package com.wowza.io

Interface ITextWriter

  • All Known Subinterfaces:
    IDvrTextWriter

    public interface ITextWriter
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Close the media asset
      boolean exists()
      Does the media asset exist
      String getBasePath()
      Get the basePath for the random access reader
      String getMediaName()
      Get the media name
      String getPath()
      Get the unique path to the media asset item
      void init​(IApplicationInstance appInstance, IMediaStream stream, String basePath, String mediaName)  
      boolean isAppend()  
      boolean isOpen()
      Is the media asset open
      long lastModified()
      Return the lastModified date (same format as File.lastModified)
      long length()
      Get the media asset length in bytes
      void open()
      Open the media asset
      void setAppend​(boolean append)  
      void write​(char[] cbuf)  
      void write​(char[] cbuf, int off, int len)  
      void write​(String str)  
      void write​(String str, int off, int len)  
    • Method Detail

      • isAppend

        boolean isAppend()
      • setAppend

        void setAppend​(boolean append)
      • open

        void open()
           throws java.io.IOException
        Open the media asset
        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
      • write

        void write​(char[] cbuf,
                   int off,
                   int len)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        void write​(char[] cbuf)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        void write​(String str,
                   int off,
                   int len)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        void write​(String str)
            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