Examples of seek()


Examples of com.sun.media.jai.codec.MemoryCacheSeekableStream.seek()

    }

    // Read the JAI metadata
    if (content.getWidth() <= 0 || content.getHeight() <= 0) {
      try {
        mcss.seek(0);
        readJAIMetadata(content, mcss);
      } catch (Throwable t) {
        logger.warn("Error extracting metadata using java advanced imaging (jai) from {}: {}", fileName, t.getMessage());
        throw new IOException(t);
      } finally {
View Full Code Here

Examples of com.sun.media.jai.codec.SeekableOutputStream.seek()

                // Save current position.
                long savePos = sos.getFilePointer();

                // Seek backward to the IFD offset and write IFD.
                sos.seek(ifdOffset);
                writeDirectory(ifdOffset, fields, nextIFDOffset);

                // Seek forward to position after data.
                sos.seek(savePos);
            } else if(tempFile != null) {
View Full Code Here

Examples of com.sun.media.jai.codec.SeekableStream.seek()

                    // Force garbage collection.
                    System.gc(); //slow

                    // Reposition the stream before the previous decoding.
                    source.seek(streamPosition);

                    // Retry image decoding.
                    image = new DisposableNullOpImage(dec.decodeAsRenderedImage(page),
                                                      layout,
                                                      renderHints,
View Full Code Here

Examples of com.sun.star.io.XSeekable.seek()

                        l.started();
                    }

                    XSeekable xseek = (XSeekable) UnoRuntime.queryInterface(XSeekable.class, m_xis);
                    if (xseek != null) {
                        xseek.seek(0);
                    }

                    is = new BufferedInputStream(
                            new XInputStreamToInputStreamAdapter(m_xis));
                    //Source xmlsource = new StreamSource(xmlinput);   
View Full Code Here

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

Examples of com.xuggle.xuggler.io.IURLProtocolHandler.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

Examples of com.zesped.model.Employees.seek()

        DAO.log(oSes, oUsr.getDocument(), User.class, "SEND INVITATION", AtrilEvent.Level.INFO, sEmail);
      }
        if (bCreateEmp) {
        Employees oEms = oTxp.employees(oSes);
        try {
          oEms.seek(oSes, oUsr.getNickName());
        } catch (InstantiationException xcpt) {
          Log.out.error("AsyncSendInvitation Employees.seek() "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
        } catch (IllegalAccessException xcpt) {
          Log.out.error("AsyncSendInvitation Employees.seek() "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);     
        } catch (ElementNotFoundException enfe) {
View Full Code Here

Examples of dovetaildb.querynode.QueryNode.seek()

    if (node == null) {
      outerNode = null;
      return;
    }
    long curDoc = outerNode.doc();
    node.seek(curDoc, ArrayBytes.EMPTY_BYTES);
    if (node.doc() == Long.MAX_VALUE) {
      outerNode = null;
      return;
    }
    rangeSpecializations.add(new RangeSpecialization(range, node));
View Full Code Here

Examples of eu.mosaic_cloud.drivers.filesystem.AbstractFileHandlerDriver.seek()

      case SEEK:
        final DFSPayloads.SeekFile seekPayload = (DFSPayloads.SeekFile) message.payload;
        token = seekPayload.getToken();
        driver = drivers.get(seekPayload.getFileHandler());
       
        result = driver.seek(seekPayload.getPosition());
        sendResult(session, token, FileHandlerOperantions.SEEK, result);
        break;
       
      case CLOSE:
        final DFSPayloads.CloseFile closePayload = (DFSPayloads.CloseFile) message.payload;
View Full Code Here

Examples of eu.stratosphere.core.fs.FSDataInputStream.seek()

      if (file.getLen() < blockInfo.getInfoSize()) {
        continue;
      }

      FSDataInputStream fdis = file.getPath().getFileSystem().open(file.getPath(), blockInfo.getInfoSize());
      fdis.seek(file.getLen() - blockInfo.getInfoSize());

      DataInputStream input = new DataInputStream(fdis);
      blockInfo.read(input);
      totalCount += blockInfo.getAccumulatedRecordCount();
    }
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.