Codota Logo
LZFException
Code IndexAdd Codota to your IDE (free)

How to use
LZFException
in
com.ning.compress.lzf

Best Java code snippets using com.ning.compress.lzf.LZFException (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: ning/compress

  /**
   * Helper method called when it is determined that the target buffer can not
   * hold all data to copy or uncompress
   */
  protected void _reportArrayOverflow(byte[] targetBuffer, int outPtr, int dataLen)
    throws LZFException
  {
    throw new LZFException("Target buffer too small ("+targetBuffer.length+"): can not copy/uncompress "
        +dataLen+" bytes to offset "+outPtr);
  }
}
origin: com.ning/compress-lzf

  /**
   * Helper method called when it is determined that the target buffer can not
   * hold all data to copy or uncompress
   */
  protected void _reportArrayOverflow(byte[] targetBuffer, int outPtr, int dataLen)
    throws LZFException
  {
    throw new LZFException("Target buffer too small ("+targetBuffer.length+"): can not copy/uncompress "
        +dataLen+" bytes to offset "+outPtr);
  }
}
origin: harbby/presto-connectors

  /**
   * Helper method called when it is determined that the target buffer can not
   * hold all data to copy or uncompress
   */
  protected void _reportArrayOverflow(byte[] targetBuffer, int outPtr, int dataLen)
    throws LZFException
  {
    throw new LZFException("Target buffer too small ("+targetBuffer.length+"): can not copy/uncompress "
        +dataLen+" bytes to offset "+outPtr);
  }
}
origin: com.ning/compress-lzf

protected void _reportCorruptHeader() throws LZFException {
  throw new LZFException("Corrupt input data, block did not start with 2 byte signature ('ZV') followed by type byte, 2-byte length)");
}

origin: ning/compress

protected void _reportCorruptHeader() throws LZFException {
  throw new LZFException("Corrupt input data, block did not start with 2 byte signature ('ZV') followed by type byte, 2-byte length)");
}

origin: harbby/presto-connectors

protected void _reportCorruptHeader() throws LZFException {
  throw new LZFException("Corrupt input data, block did not start with 2 byte signature ('ZV') followed by type byte, 2-byte length)");
}

origin: com.ning/compress-lzf

protected final static void skipFully(final InputStream is, int amount) throws IOException
{
  final int orig = amount;
  while (amount > 0) {
    long skipped = is.skip(amount);
    if (skipped <= 0) {
      throw new LZFException("Input problem: failed to skip "+orig+" bytes in input stream, only skipped "
          +(orig-amount));
    }
    amount -= (int) skipped;
  }
}

origin: ning/compress

  protected void _reportBadBlockType(byte[] comp, int nextOffset, int len, int type)
      throws IOException
  {
    throw new LZFException("Bad block: unrecognized type 0x"+Integer.toHexString(type & 0xFF)
        +" (at "+(nextOffset-1)+"/"+len+")");
  }
}
origin: ning/compress

protected final static void skipFully(final InputStream is, int amount) throws IOException
{
  final int orig = amount;
  while (amount > 0) {
    long skipped = is.skip(amount);
    if (skipped <= 0) {
      throw new LZFException("Input problem: failed to skip "+orig+" bytes in input stream, only skipped "
          +(orig-amount));
    }
    amount -= (int) skipped;
  }
}

origin: harbby/presto-connectors

protected final static void skipFully(final InputStream is, int amount) throws IOException
{
  final int orig = amount;
  while (amount > 0) {
    long skipped = is.skip(amount);
    if (skipped <= 0) {
      throw new LZFException("Input problem: failed to skip "+orig+" bytes in input stream, only skipped "
          +(orig-amount));
    }
    amount -= (int) skipped;
  }
}

origin: harbby/presto-connectors

  protected void _reportBadBlockType(byte[] comp, int nextOffset, int len, int type)
      throws IOException
  {
    throw new LZFException("Bad block: unrecognized type 0x"+Integer.toHexString(type & 0xFF)
        +" (at "+(nextOffset-1)+"/"+len+")");
  }
}
origin: com.ning/compress-lzf

  protected void _reportBadBlockType(byte[] comp, int nextOffset, int len, int type)
      throws IOException
  {
    throw new LZFException("Bad block: unrecognized type 0x"+Integer.toHexString(type & 0xFF)
        +" (at "+(nextOffset-1)+"/"+len+")");
  }
}
origin: ning/compress

protected final static void readFully(InputStream is, boolean compressed,
    byte[] outputBuffer, int offset, int len) throws IOException
{
  int left = len;
  while (left > 0) {
    int count = is.read(outputBuffer, offset, left);
    if (count < 0) { // EOF not allowed here
      throw new LZFException("EOF in "+len+" byte ("
          +(compressed ? "" : "un")+"compressed) block: could only read "
          +(len-left)+" bytes");
    }
    offset += count;
    left -= count;
  }
}
origin: harbby/presto-connectors

protected final static void readFully(InputStream is, boolean compressed,
    byte[] outputBuffer, int offset, int len) throws IOException
{
  int left = len;
  while (left > 0) {
    int count = is.read(outputBuffer, offset, left);
    if (count < 0) { // EOF not allowed here
      throw new LZFException("EOF in "+len+" byte ("
          +(compressed ? "" : "un")+"compressed) block: could only read "
          +(len-left)+" bytes");
    }
    offset += count;
    left -= count;
  }
}
origin: com.ning/compress-lzf

protected final static void readFully(InputStream is, boolean compressed,
    byte[] outputBuffer, int offset, int len) throws IOException
{
  int left = len;
  while (left > 0) {
    int count = is.read(outputBuffer, offset, left);
    if (count < 0) { // EOF not allowed here
      throw new LZFException("EOF in "+len+" byte ("
          +(compressed ? "" : "un")+"compressed) block: could only read "
          +(len-left)+" bytes");
    }
    offset += count;
    left -= count;
  }
}
origin: harbby/presto-connectors

protected void _reportBadHeader(byte[] comp, int nextOffset, int len, int relative)
    throws IOException
{
  char exp = (relative == 0) ? 'Z' : 'V';
  --nextOffset;
  throw new LZFException("Bad block: byte #"+relative+" of block header not '"
      +exp+"' (0x"+Integer.toHexString(exp)
      +") but 0x"+Integer.toHexString(comp[nextOffset] & 0xFF)
      +" (at "+(nextOffset-1)+"/"+(len)+")");
}
origin: com.ning/compress-lzf

protected void _reportBadHeader(byte[] comp, int nextOffset, int len, int relative)
    throws IOException
{
  char exp = (relative == 0) ? 'Z' : 'V';
  --nextOffset;
  throw new LZFException("Bad block: byte #"+relative+" of block header not '"
      +exp+"' (0x"+Integer.toHexString(exp)
      +") but 0x"+Integer.toHexString(comp[nextOffset] & 0xFF)
      +" (at "+(nextOffset-1)+"/"+(len)+")");
}
origin: ning/compress

protected void _reportBadHeader(byte[] comp, int nextOffset, int len, int relative)
    throws IOException
{
  char exp = (relative == 0) ? 'Z' : 'V';
  --nextOffset;
  throw new LZFException("Bad block: byte #"+relative+" of block header not '"
      +exp+"' (0x"+Integer.toHexString(exp)
      +") but 0x"+Integer.toHexString(comp[nextOffset] & 0xFF)
      +" (at "+(nextOffset-1)+"/"+(len)+")");
}
origin: com.ning/compress-lzf

    throw new LZFException("Corrupt input data, block #"+blockNr+" (at offset "+ptr+"): did not start with 'ZV' signature bytes");
    ptr += 7;
  } else { // unknown... CRC-32 would be 2, but that's not implemented by cli tool
    throw new LZFException("Corrupt input data, block #"+blockNr+" (at offset "+ptr+"): unrecognized block type "+(type & 0xFF));
  throw new LZFException("Corrupt input data, block #"+blockNr+" (at offset "+ptr+"): truncated block header");
throw new LZFException("Corrupt input data: block #"+blockNr+" extends "+(data.length - ptr)+" beyond end of input");
origin: ning/compress

    throw new LZFException("Corrupt input data, block #"+blockNr+" (at offset "+ptr+"): did not start with 'ZV' signature bytes");
    ptr += 7;
  } else { // unknown... CRC-32 would be 2, but that's not implemented by cli tool
    throw new LZFException("Corrupt input data, block #"+blockNr+" (at offset "+ptr+"): unrecognized block type "+(type & 0xFF));
  throw new LZFException("Corrupt input data, block #"+blockNr+" (at offset "+ptr+"): truncated block header");
throw new LZFException("Corrupt input data: block #"+blockNr+" extends "+(data.length - ptr)+" beyond end of input");
com.ning.compress.lzfLZFException

Most used methods

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
  • getApplicationContext (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JPanel (javax.swing)
  • JTextField (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now