Examples of skip()


Examples of de.innovationgate.utils.SkippingIterator.skip()

                _currentValue = null;
                nrOfElements--;
            }
            else if (_it instanceof SkippingIterator) {
                SkippingIterator skippy = (SkippingIterator) _it;
                return skippy.skip(nrOfElements);
            }
            else {
                if (_it.hasNext()) {
                    _it.next();
                }
View Full Code Here

Examples of edu.umd.cs.findbugs.ba.SignatureConverter.skip()

        SignatureConverter converter = new SignatureConverter(methodSig);

        if (converter.getFirst() != '(') {
            throw new IllegalStateException("bad method signature " + methodSig);
        }
        converter.skip();

        boolean needsComma = false;
        while (converter.getFirst() != ')') {
            if (needsComma) {
                if (hash) {
View Full Code Here

Examples of gnu.java.security.der.DERReader.skip()

      }

    // issuer   Name,
    val = der.read();
    issuer = new X500DistinguishedName(val.getEncoded());
    der.skip(val.getLength());
    logger.log (Component.X509, "read issuer == {0}", issuer);

    // Validity ::= SEQUENCE {
    //   notBefore   Time,
    //   notAfter    Time }
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntIterator.skip()

          IntIterator firstIntIt = firstIterator.positions();
          IntIterator secondIntIt = secondIterator.positions();       
          while(firstIntIt.hasNext()){                 
            Assert.assertEquals(firstIntIt.nextInt(),secondIntIt.nextInt());
          }       
          Assert.assertEquals(firstIntIt.skip(2),secondIntIt.skip(2));       
          if(firstIntIt.hasNext()){
            Assert.assertEquals(firstIntIt.nextInt(),secondIntIt.nextInt());
          }       
          Assert.assertEquals(firstIntIt.skip(9999999),secondIntIt.skip(9999999));       
          if(firstIntIt.hasNext()){       
View Full Code Here

Examples of java.io.BufferedInputStream.skip()

            out = new BufferedOutputStream(
                    new DataOutputStream(getOutputStream()), transferBufferSize*2);
           
            // if resuming, we skip over the unwanted bytes
            if (resume && resumeMarker > 0) {
                in.skip(resumeMarker);
            }
            else
                resumeMarker = 0;
   
            byte[] buf = new byte[transferBufferSize];
View Full Code Here

Examples of java.io.BufferedReader.skip()

    for (int i = 0; i < 256; i++)
      chars[i] = (char) i;
    Reader in = new BufferedReader(new Support_StringReader(new String(
        chars)), 12);

    in.skip(6);
    in.mark(14);
    in.read(new char[14], 0, 14);
    in.reset();
    assertTrue("Wrong chars", in.read() == (char) 6
        && in.read() == (char) 7);
View Full Code Here

Examples of java.io.ByteArrayInputStream.skip()

        Class<?> messageType = factoryArray.get(messageTypeIndex);
        tmp = (Message) messageType.newInstance();
        tmp.setProtocolVersion(networkProtocolVersion);
        ByteArrayInputStream in = new ByteArrayInputStream(data);
        if (offset > 0) {
          in.skip(offset);
        }
        InputSerializer s = new InputSerializer(in);
        s.setProtocolVersion(networkProtocolVersion);

        tmp.readObject(s);
View Full Code Here

Examples of java.io.DataInputStream.skip()

      in.readByte();
      this.senseKeySpecificBuffer = new byte[3];
      in.read(this.senseKeySpecificBuffer);
      // the rest of the additional sense bytes are ignored
      // (vendor specific bytes not supported)
      in.skip(length);

      KCQ kcq = KCQ.valueOf(key, code, qualifier); // throws IOException on invalid values

      // Set appropriate fields
View Full Code Here

Examples of java.io.FileInputStream.skip()

      File file = new File(filename);
      if (file.length() > 0)
      {
        FileInputStream readingFile;
        readingFile = new FileInputStream(filename);
        readingFile.skip(file.length() - 1);
        lastByte = readingFile.read();
        readingFile.close();
      }
    }
    catch (Exception e)
View Full Code Here

Examples of java.io.FileReader.skip()

            }

            final PrintWriter writer = response.getWriter();
            final FileReader reader = new FileReader(log);
            if(position > 0) {
                reader.skip(position);
            }

            char[] buffer = new char[1024];
            int 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.