Examples of seek()


Examples of Framework.MemoryStream.seek()

            dataWire = this.convertMemoryStream(this, this.data, false);

            int streamOffset = dataWire.getOffset();
            dataWire.open(true);
            dataWire.seek(0);
            dataWire.readBinary(binData);
            dataWire.seek(streamOffset);
            dataWire.close();
        }
View Full Code Here

Examples of at.jku.sii.sqlitereader.io.ArrayDataInput.seek()

  }

  public static BTreePage<TableCell> readMaster(SqliteDataBase db) {
    final ArrayDataInput block = db.getPageBlock(1);
    block.seek(SqliteDataBase.HEADER_SIZE); // as we have the first block skip the header
    @SuppressWarnings("unchecked")
    BTreePage<TableCell> tree = (BTreePage<TableCell>) read(db, 1, block);
    db.resolvePage(1, tree);
    return tree;
  }
View Full Code Here

Examples of com.aelitis.azureus.core.util.QTFastStartRAF.seek()

        String ext = dot_pos<0?"":name.substring(dot_pos+1);
       
        try{
          raf = new QTFastStartRAF( file, user_agent != null && QTFastStartRAF.isSupportedExtension( ext ));
         
          raf.seek( offset );
     
          byte[] buffer = new byte[max_read_chunk];
         
          long  rem    = length;
          long  pos   = offset;
View Full Code Here

Examples of com.ardor3d.util.LittleEndianRandomAccessDataInput.seek()

                throw new Ardor3dException("Invalid file version (Version not 8)!");
            }

            // Parse out texture names
            final String[] texNames = new String[header.numSkins];
            bis.seek(header.offsetSkins);
            for (int i = 0; i < header.numSkins; i++) {
                texNames[i] = bis.readString(64);
            }

            // Parse out tex coords
View Full Code Here

Examples of com.bbn.openmap.io.BinaryBufferedFile.seek()

        if (shp == null) {
            shp = new BinaryBufferedFile(shpFileName);
        }

        // Need to figure out what the shape type is...
        ssx.seek(32);

        // int shapeType = readLEInt(ssx);
        // /
        ssx.byteOrder(false);
        int shapeType = ssx.readInteger();
View Full Code Here

Examples of com.bbn.openmap.io.BinaryFile.seek()

            // binFile = new BinaryFile(framePath);
            RpfFileSections rfs = new RpfFileSections();
            RpfHeader head = new RpfHeader();

            head.read(binFile);
            binFile.seek(head.locationSectionLocation);
            rfs.parse(binFile);

            Color[] ret = rfs.parseColorSection(binFile, ct);

            binFile.close();
View Full Code Here

Examples of com.lightcrafts.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.lightcrafts.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.lightcrafts.utils.file.OrderableRandomAccessFile.seek()

        final OrderableRandomAccessFile file =
            new OrderableRandomAccessFile( fileName, "rw" );
        try {
            if ( file.readShort() == TIFF_LITTLE_ENDIAN )
                file.order( ByteOrder.LITTLE_ENDIAN );
            file.seek( TIFF_HEADER_SIZE - TIFF_INT_SIZE );
            int ifdOffset = file.readInt();
            while ( ifdOffset > 0 ) {
                file.seek( ifdOffset );
                final int entryCount = file.readUnsignedShort();
                for ( int entry = 0; entry < entryCount; ++entry ) {
View Full Code Here

Examples of com.mobixess.jodb.core.io.IRandomAccessDataBuffer.seek()

        long objectsWithRelativeAddrStartOffsetShift = -1;
        if(fieldsWithRelativeAddr.size()>0){//with relative offsets
            transactionFile.writeShort(fieldsWithRelativeAddr.size());
            objectsWithRelativeAddrStartOffsetShift = transactionFile.getCursorOffset() - objectIDOffset;
            transactionFile.setLength(transactionFile.length()+ fieldsWithRelativeAddr.size()*(2+4));
            transactionFile.seek(transactionFile.length());
        }
       
        if(primitiveFields.size()>0){
            transactionFile.writeShort(primitiveFields.size());
        }
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.