Tabnine Logo
LZFException
Code IndexAdd Tabnine 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)

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)
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Menu (java.awt)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Top plugins for WebStorm
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