Examples of IError


Examples of com.xuggle.xuggler.IError

    reader.addListener(readerCounter);
    writer.addListener(writerCounter);

   
    IError rv;
    while ((rv = reader.readPacket()) == null)
      ;

    assertEquals(IError.Type.ERROR_EOF    , rv.getType());

    assertEquals(READER_VIDEO_FRAME_COUNT , readerCounter.getCount(VIDEO));
    assertEquals(READER_AUDIO_FRAME_COUNT , readerCounter.getCount(AUDIO));
    assertEquals(1                        , readerCounter.getCount(OPEN));
    assertEquals(1                        , readerCounter.getCount(CLOSE));
View Full Code Here

Examples of com.xuggle.xuggler.IError

      };
    mr.addListener(mrl);

    // read all the packets in the media file

    IError err = null;
    while ((err = mr.readPacket()) == null)
      ;

    // should be at end of file

    assertEquals("Loop should complete with an EOF",
        IError.Type.ERROR_EOF,
        err.getType());

    // should have read out the correct number of audio and video frames
   
    assertEquals("incorrect number of video frames:",
        counts[0],
View Full Code Here

Examples of com.xuggle.xuggler.IError

      };
    mr.addListener(mrl);

    // read all the packets in the media file

    IError err = null;
    while ((err = mr.readPacket()) == null)
      ;

    // should be at end of file

    assertEquals("Loop should complete with an EOF",
        IError.Type.ERROR_EOF,
        err.getType());

    // should have read out the correct number of audio and video frames
   
    assertEquals("incorrect number of video frames:",
        counts[0],
View Full Code Here

Examples of com.xuggle.xuggler.IError

  }
 
  private static String getErrorMessage(int rv)
  {
    String errorString = "";
    IError error = IError.make(rv);
    if (error != null) {
       errorString = error.toString();
       error.delete();
    }
    return errorString;
  }
View Full Code Here

Examples of com.xuggle.xuggler.IError

    {
      // this little trick converts the non friendly integer return
      // value into a slightly more friendly object to get a
      // human-readable error name

      IError error = IError.make(retval);
      throw new IllegalArgumentException(
        "could not open file: " + deviceName + "; Error: " +
        error.getDescription());
    }     

    // create a media reader to wrap that container

    IMediaReader reader = ToolFactory.makeReader(container);
View Full Code Here

Examples of org.destecs.core.parsers.IError

       
        if (parser.hasErrors())
        {
          for (Object err : parser.getErrors())
          {
            IError e = (IError) err;           
            FileUtility.addMarker(currentDocument.getFile(),  e.getMessage(), e.getLine() == 0 ? currentDocument.getNumberOfLines() : e.getLine()+1,  IMarker.SEVERITY_ERROR);
          }
        }

      } catch (IOException e)
      {
View Full Code Here

Examples of org.destecs.core.parsers.IError

    if (parser.hasErrors() && errorHandler != null)
    {
      for (Object err : parser.getErrors())
      {
        IError e = (IError) err;
        errorHandler.addMarker(file, e.getMessage(), e.getLine() + 1, e
            .getCharPositionInLine(), IMarker.SEVERITY_ERROR,
            FileUtility
                .getCharContent(FileUtility.getContent(file))
                .toString());
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.