Package com.xuggle.xuggler.io

Examples of com.xuggle.xuggler.io.FileProtocolHandler.seek()


    // note that without a protocol string, should default to file:
    IURLProtocolHandler reader = new FileProtocolHandler(sampleFile);
    retval = reader.open(null, IURLProtocolHandler.URL_RDONLY_MODE);

    long bytesWritten = 0;
    long totalBytes = reader.seek(0, IURLProtocolHandler.SEEK_SIZE);

    byte[] buffer = new byte[1024];
    while ((retval = reader.read(buffer, buffer.length)) > 0)
    {
      // Write the output.
View Full Code Here


    int retval = 0;
    retval = handler.open(filename, IURLProtocolHandler.URL_RDONLY_MODE);
    assertTrue(retval >= 0);

    long totalBytes = handler.seek(0, IURLProtocolHandler.SEEK_SIZE);
    assertTrue(totalBytes >= 0);

    // and close
    retval = handler.close();
    assertTrue(retval >= 0);
View Full Code Here

    // note that without a protocol string, should default to file:
    IURLProtocolHandler reader = new FileProtocolHandler(sampleFile);
    retval = reader.open(null, IURLProtocolHandler.URL_RDONLY_MODE);

    long bytesWritten = 0;
    long totalBytes = reader.seek(0, IURLProtocolHandler.SEEK_SIZE);

    byte[] buffer = new byte[1024];
    while ((retval = reader.read(buffer, buffer.length)) > 0)
    {
      // Write the output.
View Full Code Here

    int retval = 0;
    retval = handler.open(filename, IURLProtocolHandler.URL_RDONLY_MODE);
    assertTrue(retval >= 0);

    long totalBytes = handler.seek(0, IURLProtocolHandler.SEEK_SIZE);
    assertTrue(totalBytes >= 0);

    // and close
    retval = handler.close();
    assertTrue(retval >= 0);
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.