Examples of skip()


Examples of javax.media.control.FramePositioningControl.skip()

 
  public void skip( int numFrames )
  {
    final FramePositioningControl fpc = getFramePosCtrl();
    if( fpc != null) {
      fpc.skip( numFrames );
    }
  }
 
  public void goToEnd()
  {
View Full Code Here

Examples of javax.sound.sampled.AudioInputStream.skip()

      AudioInputStream ais = AudioSystem.getAudioInputStream(WaveDataTest.class.getClassLoader().getResource(filePath));     
      int totalSize = ais.getFormat().getChannels() * (int) ais.getFrameLength() * ais.getFormat().getSampleSizeInBits() / 8;
     
      // skip 1/4 of the stream
      int skip = totalSize / 4;
      long skipped = ais.skip(skip);
     
      WaveData wd = WaveData.create(ais);
      if(wd == null) {
        System.out.println("executeMidStreamCreationTest::success");
      }
View Full Code Here

Examples of lev.LInChannel.skip()

                    }
                    grupPos = input.pos() - 4;
                    grupLength = input.extractInt(0, 4);
                    majorRecordType = input.extractString(0, 4);
                    if (skip.contains(majorRecordType)) {
                        input.skip(grupLength - 12);
                    } else {
                        input.skip(12);
                    }
                } else if (inputStr.equals(majorRecordType)) {
                    start = input.pos() - 4;
View Full Code Here

Examples of lotus.domino.ViewNavigator.skip()

              ve = DominoUtils.getViewEntryByKeyWithOptions(Factory.toLotus(view), key, searchOptions);
            } else {
              ve = nav.getCurrent();
            }
            if (start > 0) {
              if (nav.skip(start) != start) {
                // ok not all of them are skipped, stop the
                // process
                count = 0;
              }
            }
View Full Code Here

Examples of net.bnubot.core.BNetInputStream.skip()

  private static BNetIcon[] readIconsDotBni(File f) {
    try {
      //Out.info(this.getClass().getName(), "Reading " + f.getName());
     
      BNetInputStream is = new BNetInputStream(new FileInputStream(f));
      is.skip(4); //int headerSize = is.readDWord();
      int bniVersion = is.readWord();
      is.skip(2)// Alignment Padding (unused)
      int numIcons = is.readDWord();
      is.skip(4)//int dataOffset = is.readDWord();
     
View Full Code Here

Examples of net.bnubot.util.BNetInputStream.skip()

      case SID_NEWS_INFO: {
        int numEntries = is.readByte();
        // int lastLogon = is.readDWord();
        // int oldestNews = is.readDWord();
        // int newestNews = is.readDWord();;
        is.skip(12);

        for(int i = 0; i < numEntries; i++) {
          int timeStamp = is.readDWord();
          String news = is.readNTStringUTF8().trim();
          if(timeStamp == 0// MOTD
View Full Code Here

Examples of net.charabia.util.io.BinaryInputStream.skip()

        boolean pngIcon = false;
        if (entries[i].dwBytesInRes > PNG_SIGNATURE.length) {
          //     Check if this is a PNG icon (introduced in Windows Vista)
          in.mark(1024 * 1024);
          in.skip(entries[i].dwImageOffset);
          byte[] signatureBuffer = new byte[PNG_SIGNATURE.length];
          in.read(signatureBuffer, 0, PNG_SIGNATURE.length);
          pngIcon = Arrays.equals(PNG_SIGNATURE, signatureBuffer);
          in.reset();
        }
View Full Code Here

Examples of net.openhft.lang.io.ByteBufferBytes.skip()

                                bufferBytes.position(position);
                                bufferBytes.limit(limit);

                                // skip onto the next entry
                                bufferBytes.skip(entrySize);

                            }
                            isReadingEntry.set(false);

                        } catch (InterruptedException e1) {
View Full Code Here

Examples of net.sf.cindy.Buffer.skip()

        }
    }

    public void testSkip() {
        Buffer buffer = newBuffer(random.nextInt(100) + 10);
        buffer.skip(1);
        assertEquals(buffer.position(), 1);
        buffer.skip(2);
        assertEquals(buffer.position(), 3);
        buffer.skip(buffer.remaining());
        assertEquals(buffer.position(), buffer.limit());
View Full Code Here

Examples of net.yura.lobby.util.ByteInputStream.skip()

        assertEquals(7, in.available()); assertEquals(1, in.skip(1));
        assertEquals(6, in.available()); assertEquals(1, in.skip(1));
        assertEquals(5, in.available()); assertEquals(1, in.skip(1));
        assertEquals(4, in.available()); assertEquals(1, in.skip(1));
        assertEquals(3, in.available()); assertEquals(1, in.skip(1));
        assertEquals(2, in.available()); assertEquals(1, in.skip(1));
        assertEquals(1, in.available()); assertEquals(1, in.skip(1));
        assertEquals(0, in.available()); assertEquals(0, in.skip(1));

        in.addBytes(new byte[]{43,19});
       
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.