Examples of seek()


Examples of org.jnode.awt.font.truetype.TTFInput.seek()

        if (glyphs[i] != null) {
            return glyphs[i];
        } else {
            final TTFInput in = getInput();
            in.pushPos();
            in.seek(offsets[i]);
            int numberOfContours = in.readShort();
            if (numberOfContours >= 0) {
                glyphs[i] = new SimpleGlyph(in, numberOfContours);
            } else {
                glyphs[i] = new CompositeGlyph(in, this);
View Full Code Here

Examples of org.jruby.util.io.OpenFile.seek()

                   
                    // TODO: anything threads attached to original fd are notified of the close...
                    // see rb_thread_fd_close
                   
                    if (originalFile.isReadable() && pos >= 0) {
                        selfFile.seek(pos, Stream.SEEK_SET);
                        originalFile.seek(pos, Stream.SEEK_SET);
                    }
                }

                if (selfFile.getPipeStream() != null && selfDescriptor.getFileno() != selfFile.getPipeStream().getDescriptor().getFileno()) {
View Full Code Here

Examples of org.mozilla.interfaces.nsISeekableStream.seek()

                      {
                        e.printStackTrace();
                      }
                      finally
                      {
                        seekable.seek( nsISeekableStream.NS_SEEK_SET, pos );
                      }
                    }
                  }
                }
View Full Code Here

Examples of org.omg.DynamicAny.DynStruct.seek()

        System.out.println("[Client]: Passing a struct..." +
                s.generic( dyn_struct.to_any() ) );

        // test the primitive get/set operations for DynStruct

        dyn_struct.seek(0);
        dyn_struct.insert_string( "newly inserted" );
        System.out.println("[Client]: Passing the struct again..." +
                s.generic( dyn_struct.to_any() ) );

        dyn_struct.destroy();
View Full Code Here

Examples of org.omg.DynamicAny.DynUnion.seek()

    public Any evaluateUnion(Any value, int position) throws EvaluationException
    {
        final DynUnion _dynUnion = toDynUnion(value);

        _dynUnion.seek(0);

        if (logger_.isDebugEnabled())
        {
            logger_.debug("extract idx: " + position + " from Union " + _dynUnion.type());
        }
View Full Code Here

Examples of org.pdfclown.bytes.IBuffer.seek()

          subsectionBounds.add(new PdfInteger(0));
          subsectionBounds.add(new PdfInteger(size));
        }

        body.setByteOrder(ByteOrder.BIG_ENDIAN);
        body.seek(0);

        final Iterator<PdfDirectObject> subsectionBoundIterator = subsectionBounds.iterator();
        while(subsectionBoundIterator.hasNext())
        {
          try
View Full Code Here

Examples of org.pdfclown.bytes.IInputStream.seek()

    // Ensure that data is read using the proper endianness!
    stream.setByteOrder(ByteOrder.BIG_ENDIAN);
    try
    {
      int index = 4;
      stream.seek(index);
      byte[] markerBytes = new byte[2];
      while(true)
      {
        index += stream.readUnsignedShort();
        stream.seek(index);
View Full Code Here

Examples of org.pdfclown.tokens.Parser.seek()

          // In-use entry (late-bound data object).
          case InUse:
          {
            Parser parser = file.getReader().getParser();
            // Retrieve the associated data object among the original objects!
            parser.seek(xrefEntry.getOffset());
            // Get the indirect data object!
            dataObject = parser.parsePdfObject(4); // NOTE: Skips the indirect-object header.
            break;
          }
          case InUseCompressed:
View Full Code Here

Examples of org.postgresql.largeobject.LargeObject.seek()

    public synchronized InputStream getBinaryStream() throws SQLException
    {
        checkFreed();
        LargeObject subLO = lo.copy();
        subLOs.add(subLO);
        subLO.seek(0, LargeObject.SEEK_SET);
        return subLO.getInputStream();
    }

    public synchronized OutputStream setBinaryStream(long pos) throws SQLException
    {
View Full Code Here

Examples of org.red5.server.api.stream.ISubscriberStream.seek()

      int streamId = conn.getStreamId();
      IClientStream stream = streamConn.getStreamById(streamId);
      if (stream != null && stream instanceof ISubscriberStream) {
        ISubscriberStream subscriberStream = (ISubscriberStream) stream;
        try {
          subscriberStream.seek(position);
        } catch (OperationNotSupportedException err) {
          sendNSFailed(streamConn, StatusCodes.NS_SEEK_FAILED, "The stream doesn't support seeking.", stream.getName(), streamId);
        }
      }
    }
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.