Examples of skip()


Examples of br.com.visualmidia.business.Expenditure.skip()

            operation.setOperationLinked(true);
            system.getExtractItemMap().remove(idExtractItem);
        }
        system.getOperations().put(idOperation, operation);

        expenditure.skip();
       
        if (expenditure.getLastPaymentDate() != null && (expenditure.getFrequency() == 0 || expenditure.getNextPaymentDate().afterDay(expenditure.getLastPaymentDate())) || (expenditure.getLastPaymentDate() == null && expenditure.getFrequency() == 0)) {
          expenditure.setActive(false);
        } else {
            if (!expenditure.isFixedValue()) {
View Full Code Here

Examples of br.com.visualmidia.business.Incoming.skip()

            operation.setOperationLinked(true);
            system.getExtractItemMap().remove(idExtractItem);
        }
        system.getOperations().put(idOperation, operation);

        incoming.skip();
       
        if (incoming.getLastPaymentDate() != null && (incoming.getFrequency() == 0 || incoming.getNextPaymentDate().after(incoming.getLastPaymentDate()))) {
            incoming.setActive(false);
        } else if(incoming.getLastPaymentDate() == null && incoming.getFrequency() == 0){
          incoming.setActive(false);
View Full Code Here

Examples of com.aragost.javahg.internals.HgInputStream.skip()

        List<Integer> revisions = Lists.newArrayList();
        List<String> lines = Lists.newArrayList();
        HgInputStream stream = launchStream(file);
        while (stream.peek() != -1) {
            revisions.add(stream.revisionUpTo(':'));
            stream.skip(1);
            lines.add(stream.textUpTo('\n'));
        }
        Map<Integer, Changeset> revNumMap = createRevNumMap(repo, revisions);
        int size = lines.size();
        List<AnnotateLine> result = Lists.newArrayListWithCapacity(size);
View Full Code Here

Examples of com.caucho.vfs.ReadStream.skip()

          len = (d1 << 8) + d2;

          if (isLoggable)
            log.fine(dbgId() + (char) code + " " + len);

          is.skip(len);
          break;
        }
      }
    }
  }
View Full Code Here

Examples of com.fasterxml.jackson.core.io.MergedStream.skip()

        // not supported when there's buffered stuff...
        assertFalse(ms.markSupported());
        // so this won't work, but shouldn't throw exception
        ms.mark(1);
        assertEquals((byte) 'A', ms.read());
        assertEquals(3, ms.skip(3));
        byte[] buffer = new byte[5];
        /* Ok, now, code is allowed to return anywhere between 1 and 3,
         * but we now it will return 1...
         */
        assertEquals(1, ms.read(buffer, 1, 3));
View Full Code Here

Examples of com.fasterxml.storemate.store.util.BytesToStuff.skip()

            originalLength = -1;
        }
        final int metadataLength = reader.nextVInt();
        final int metadataOffset = reader.offset();

        reader.skip(metadataLength);
       
        final long storageLength = reader.nextVLong();
        final int payloadOffset = reader.offset();

        // and one more branch: inlined or external storage?
View Full Code Here

Examples of com.fasterxml.util.membuf.StreamyBytesMemBuffer.skip()

        assertFalse(buffer.isEmpty());

        // then skip all of it, in different order
        int left = 15;
        for (int i = 0; i <= 5; ++i) {
            assertEquals(i, buffer.skip(i));
            left -= i;
            assertEquals(left, buffer.getTotalPayloadLength());
        }
        assertEquals(0, buffer.getTotalPayloadLength());
        assertTrue(buffer.isEmpty());
View Full Code Here

Examples of com.google.code.or.io.XInputStream.skip()

        throw new NestableRuntimeException("invalid binlog magic, file: " + path);
      }
     
      //
      if(this.startPosition > MySQLConstants.BINLOG_MAGIC.length) {
        is.skip(this.startPosition - MySQLConstants.BINLOG_MAGIC.length);
      }
      return is;
    } catch(Exception e) {
      IOUtils.closeQuietly(is);
      throw e;
View Full Code Here

Examples of com.google.code.or.io.impl.XInputStreamImpl.skip()

        throw new NestableRuntimeException("invalid binlog magic, file: " + path);
      }
     
      //
      if(this.startPosition > MySQLConstants.BINLOG_MAGIC.length) {
        is.skip(this.startPosition - MySQLConstants.BINLOG_MAGIC.length);
      }
      return is;
    } catch(Exception e) {
      IOUtils.closeQuietly(is);
      throw e;
View Full Code Here

Examples of com.google.code.or.io.util.XDeserializer.skip()

    r.threadId = d.readLong(4);
    r.scramble1 = d.readNullTerminatedString();
    r.serverCapabilities = d.readInt(2);
    r.serverCollation = d.readInt(1);
    r.serverStatus = d.readInt(2);
    d.skip(13); // reserved, all 0
    r.scramble2 = d.readNullTerminatedString();
    if(d.hasMore()) r.pluginProvidedData = d.readNullTerminatedString();
    return r;
  }
}
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.