Tabnine Logo
BitstreamException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
javazoom.jl.decoder.BitstreamException
constructor

Best Java code snippets using javazoom.jl.decoder.BitstreamException.<init> (Showing top 17 results out of 315)

origin: javazoom/jlayer

protected BitstreamException newBitstreamException(int errorcode)
{
  return new BitstreamException(errorcode, null);
}
protected BitstreamException newBitstreamException(int errorcode, Throwable throwable)
origin: javazoom/jlayer

protected BitstreamException newBitstreamException(int errorcode, Throwable throwable)
{
  return new BitstreamException(errorcode, throwable);
}
origin: com.googlecode.soundlibs/jlayer

protected BitstreamException newBitstreamException(int errorcode, Throwable throwable)
{
  return new BitstreamException(errorcode, throwable);
}
origin: com.googlecode.soundlibs/jlayer

protected BitstreamException newBitstreamException(int errorcode)
{
  return new BitstreamException(errorcode, null);
}
protected BitstreamException newBitstreamException(int errorcode, Throwable throwable)
origin: pdudits/soundlibs

protected BitstreamException newBitstreamException(int errorcode)
{
  return new BitstreamException(errorcode, null);
}
protected BitstreamException newBitstreamException(int errorcode, Throwable throwable)
origin: tulskiy/musique

protected BitstreamException newBitstreamException(int errorcode) {
  return new BitstreamException(errorcode, null);
}
origin: com.badlogicgames.jlayer/jlayer

protected BitstreamException newBitstreamException (int errorcode, Throwable throwable) {
  return new BitstreamException(errorcode, throwable);
}
origin: pdudits/soundlibs

protected BitstreamException newBitstreamException(int errorcode, Throwable throwable)
{
  return new BitstreamException(errorcode, throwable);
}
origin: tulskiy/musique

protected BitstreamException newBitstreamException(int errorcode, Throwable throwable) {
  return new BitstreamException(errorcode, throwable);
}
origin: com.badlogicgames.jlayer/jlayer

protected BitstreamException newBitstreamException (int errorcode) {
  return new BitstreamException(errorcode, null);
}
origin: tulskiy/musique

/**
 * Simlar to readFully, but doesn't throw exception when
 * EOF is reached.
 */
private int readBytes(byte[] b, int offs, int len)
    throws BitstreamException {
  int totalBytesRead = 0;
  try {
    while (len > 0) {
      int bytesread = source.read(b, offs, len);
      if (bytesread == -1) {
        break;
      }
      totalBytesRead += bytesread;
      offs += bytesread;
      len -= bytesread;
    }
  }
  catch (IOException ex) {
    throw new BitstreamException(STREAM_ERROR, ex);
  }
  return totalBytesRead;
}
origin: tulskiy/musique

/**
 * Get next 32 bits from bitstream.
 * They are stored in the headerstring.
 * syncmod allows Synchro flag ID
 * The returned value is False at the end of stream.
 */
public int syncHeader(byte syncmode) throws BitstreamException {
  boolean sync;
  int headerstring;
  // read additional 2 bytes
  int bytesRead = readBytes(syncbuf, 0, 3);
  if (bytesRead != 3) throw new BitstreamException(STREAM_EOF, null);
  headerstring = ((syncbuf[0] << 16) & 0x00FF0000) | ((syncbuf[1] << 8) & 0x0000FF00) | ((syncbuf[2]) & 0x000000FF);
  do {
    headerstring <<= 8;
    if (readBytes(syncbuf, 3, 1) != 1)
      throw new BitstreamException(STREAM_EOF, null);
    headerstring |= (syncbuf[3] & 0x000000FF);
    sync = isSyncMark(headerstring, syncmode, syncword);
  }
  while (!sync);
  return headerstring;
}
origin: com.badlogicgames.jlayer/jlayer

throw new BitstreamException("XingVBRHeader Corrupted", e);
throw new BitstreamException("VBRIVBRHeader Corrupted", e);
origin: com.googlecode.soundlibs/jlayer

throw new BitstreamException("XingVBRHeader Corrupted",e);
throw new BitstreamException("VBRIVBRHeader Corrupted",e);
origin: javazoom/jlayer

throw new BitstreamException("XingVBRHeader Corrupted",e);
throw new BitstreamException("VBRIVBRHeader Corrupted",e);
origin: pdudits/soundlibs

throw new BitstreamException("XingVBRHeader Corrupted",e);
throw new BitstreamException("VBRIVBRHeader Corrupted",e);
origin: tulskiy/musique

throw new BitstreamException("XingVBRHeader Corrupted", e);
throw new BitstreamException("VBRIVBRHeader Corrupted", e);
javazoom.jl.decoderBitstreamException<init>

Popular methods of BitstreamException

  • getErrorCode
  • getErrorString
  • printStackTrace

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JPanel (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Sublime Text 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