Tabnine Logo
ByteIterator.hasNext
Code IndexAdd Tabnine to your IDE (free)

How to use
hasNext
method
in
org.wildfly.security.util.ByteIterator

Best Java code snippets using org.wildfly.security.util.ByteIterator.hasNext (Showing top 20 results out of 315)

origin: wildfly/wildfly

public boolean hasNext() {
  return ByteIterator.this.hasNext();
}
origin: wildfly/wildfly

public boolean hasNext() {
  return lo || ByteIterator.this.hasNext();
}
origin: wildfly/wildfly

public boolean hasNext() {
  return ByteIterator.this.hasNext();
}
origin: wildfly/wildfly

public boolean hasNext() {
  return offset < size && ByteIterator.this.hasNext();
}
origin: wildfly/wildfly

public boolean hasNext() {
  return ByteIterator.this.hasNext();
}
origin: wildfly/wildfly

public boolean hasNext() {
  return state == 0 && ByteIterator.this.hasNext() || state > 0 && state < 0x29;
}
origin: wildfly/wildfly

public boolean hasNext() {
  return ByteIterator.this.hasNext();
}
origin: wildfly/wildfly

public boolean hasNext() {
  return state == 0 && ByteIterator.this.hasNext() || state > 0 && state < 0xd;
}
origin: wildfly/wildfly

/**
 * Drain all the remaining bytes in this iterator to the given stream.
 *
 * @param stream the stream
 * @return the same stream
 */
public ByteArrayOutputStream drainTo(ByteArrayOutputStream stream) {
  while (hasNext()) {
    stream.write(next());
  }
  return stream;
}
origin: wildfly/wildfly

public int read() throws IOException {
  return hasNext() ? next() : -1;
}
origin: wildfly/wildfly

/**
 * Determine if the remaining contents of this iterator are identical to the remaining contents of the other iterator.  If the
 * contents are not equal, the iterators will be positioned at the location of the first difference.  If the contents
 * are equal, the iterators will both be positioned at the end of their contents.
 *
 * @param other the other byte iterator
 * @return {@code true} if the contents are equal, {@code false} otherwise
 */
public final boolean contentEquals(ByteIterator other) {
  for (;;) {
    if (hasNext()) {
      if (! other.hasNext()) {
        return false;
      }
      if (next() != other.next()) {
        return false;
      }
    } else {
      return ! other.hasNext();
    }
  }
}
origin: wildfly/wildfly

/**
 * Drains up to {@code len} bytes from this iterator into the given {@code dst} array.
 * An attempt is made to drain as many as {@code len} bytes, but a smaller number may
 * be drained.
 * <p>
 * The number of bytes actually drained is returned as an integer. Unlike
 * {@link InputStream#read(byte[], int, int)}, this method never returns a negative result.
 *
 * @param dst the buffer into which the data is drained
 * @param offs the start offset in array {@code dst} at which the data is written.
 * @param len the maximum number of bytes to drain
 * @return the total number of bytes drained into {@code dst}, always greater or equal to {@code 0}
 */
public int drain(byte[] dst, int offs, int len) {
  for (int i = 0; i < len; i ++) {
    if (! hasNext()) return i;
    dst[offs + i] = (byte) next();
  }
  return len;
}
origin: wildfly/wildfly

if (size <= 0 || ! hasNext()) {
  return EMPTY;
origin: wildfly/wildfly

if ((delims == null) || (delims.length == 0) || ! hasNext()) {
  return EMPTY;
origin: wildfly/wildfly

if (! hasNext()) {
  return CodePointIterator.EMPTY;
origin: wildfly/wildfly

public boolean hasNext() {
  return ByteIterator.this.hasNext() && ! isDelim(ByteIterator.this.peekNext());
}
origin: wildfly/wildfly

switch (state) {
  case 0: {
    assert ByteIterator.this.hasNext();
    int b0 = ByteIterator.this.next();
    c0 = calc0(b0);
    if (!ByteIterator.this.hasNext()) {
      c1 = calc1(b0, 0);
      state = 5;
    if (!ByteIterator.this.hasNext()) {
      c2 = calc2(b1, 0);
      state = 9;
origin: wildfly/wildfly

switch (state) {
  case 0: {
    assert ByteIterator.this.hasNext();
    int b0 = ByteIterator.this.next();
    c0 = calc0(b0);
    if (!ByteIterator.this.hasNext()) {
      c1 = calc1(b0, 0);
      state = 6;
    if (!ByteIterator.this.hasNext()) {
      c2 = calc2(b1, 0);
      state = 0xa;
origin: wildfly/wildfly

switch (state) {
  case 0: {
    assert ByteIterator.this.hasNext();
    int b0 = ByteIterator.this.next();
    c0 = calc0(b0);
    if (!ByteIterator.this.hasNext()) {
      c1 = calc1(b0, 0);
      state = 9;
    c1 = calc1(b0, b1);
    c2 = calc2(b1);
    if (!ByteIterator.this.hasNext()) {
      c3 = calc3(b1, 0);
      state = 0x11;
    if (!ByteIterator.this.hasNext()) {
      c4 = calc4(b2, 0);
      state = 0x19;
    c4 = calc4(b2, b3);
    c5 = calc5(b3);
    if (!ByteIterator.this.hasNext()) {
      c6 = calc6(b3, 0);
      state = 0x21;
origin: wildfly/wildfly

switch (state) {
  case 0: {
    assert ByteIterator.this.hasNext();
    int b0 = ByteIterator.this.next();
    c0 = calc0(b0);
    if (!ByteIterator.this.hasNext()) {
      c1 = calc1(b0, 0);
      state = 0x0a;
    c1 = calc1(b0, b1);
    c2 = calc2(b1);
    if (!ByteIterator.this.hasNext()) {
      c3 = calc3(b1, 0);
      state = 0x12;
    if (!ByteIterator.this.hasNext()) {
      c4 = calc4(b2, 0);
      state = 0x1a;
    c4 = calc4(b2, b3);
    c5 = calc5(b3);
    if (!ByteIterator.this.hasNext()) {
      c6 = calc6(b3, 0);
      state = 0x22;
org.wildfly.security.utilByteIteratorhasNext

Javadoc

Determine if there are more bytes after the current byte.

Popular methods of ByteIterator

  • asUtf8String
    Get this byte iterator as a UTF-8 string.
  • drain
    Drains up to len bytes from this iterator into the given dst array. An attempt is made to drain as m
  • ofBytes
    Get a byte iterator for a byte array with interleave.
  • appendTo
  • asLatin1String
    Get this byte iterator as a Latin-1 string.
  • base32Encode
    Base32-encode the current stream.
  • base64Encode
    Base64-encode the current stream.
  • drainTo
    Drain all the remaining bytes in this iterator to the given stream.
  • hasPrev
    Determine if there are more bytes before the current byte.
  • hexEncode
    Hex-encode the current stream.
  • next
    Get the next byte.
  • offset
    Get the current offset, in bytes.
  • next,
  • offset,
  • peekNext,
  • peekPrev,
  • prev,
  • update,
  • hexDecode

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • JTable (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now