Tabnine Logo
BitstreamException
Code IndexAdd Tabnine to your IDE (free)

How to use
BitstreamException
in
javazoom.jl.decoder

Best Java code snippets using javazoom.jl.decoder.BitstreamException (Showing top 20 results out of 315)

origin: com.googlecode.soundlibs/jlayer

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

public BitstreamException(int errorcode, Throwable t)
{
  this(getErrorString(errorcode), t);
  this.errorcode = errorcode;
}
 
origin: com.badlogicgames.jlayer/jlayer

/**
 * Reads and parses the next frame from the input source.
 * @return the Header describing details of the frame read, or null if the end of the stream has been reached.
 */
public Header readFrame () throws BitstreamException {
  Header result = null;
  try {
    result = readNextFrame();
    // E.B, Parse VBR (if any) first frame.
    if (firstframe == true) {
      result.parseVBR(frame_bytes);
      firstframe = false;
    }
  } catch (BitstreamException ex) {
    if (ex.getErrorCode() == INVALIDFRAME)
      // Try to skip this frame.
      // System.out.println("INVALIDFRAME");
      try {
        closeFrame();
        result = readNextFrame();
      } catch (BitstreamException e) {
        if (e.getErrorCode() != STREAM_EOF) // wrap original exception so stack trace is maintained.
          throw newBitstreamException(e.getErrorCode(), e);
      }
    else if (ex.getErrorCode() != STREAM_EOF) // wrap original exception so stack trace is maintained.
      throw newBitstreamException(ex.getErrorCode(), ex);
  }
  return result;
}
origin: tulskiy/musique

  return len;
} catch (BitstreamException e) {
  e.printStackTrace();
} catch (DecoderException e) {
  e.printStackTrace();
origin: pdudits/soundlibs

if ((ex.getErrorCode()==INVALIDFRAME))
    if ((e.getErrorCode()!=STREAM_EOF))
      throw newBitstreamException(e.getErrorCode(), e);
else if ((ex.getErrorCode()!=STREAM_EOF))
  throw newBitstreamException(ex.getErrorCode(), ex);
origin: javazoom/jlayer

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

public BitstreamException(int errorcode, Throwable t)
{
  this(getErrorString(errorcode), t);
  this.errorcode = errorcode;
}
 
origin: javazoom/jlayer

if ((ex.getErrorCode()==INVALIDFRAME))
    if ((e.getErrorCode()!=STREAM_EOF))
      throw newBitstreamException(e.getErrorCode(), e);
else if ((ex.getErrorCode()!=STREAM_EOF))
  throw newBitstreamException(ex.getErrorCode(), ex);
origin: javazoom/jlayer

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

public BitstreamException(int errorcode, Throwable t)
{
  this(getErrorString(errorcode), t);
  this.errorcode = errorcode;
}
 
origin: com.googlecode.soundlibs/jlayer

if ((ex.getErrorCode()==INVALIDFRAME))
    if ((e.getErrorCode()!=STREAM_EOF))
      throw newBitstreamException(e.getErrorCode(), e);
else if ((ex.getErrorCode()!=STREAM_EOF))
  throw newBitstreamException(ex.getErrorCode(), ex);
origin: com.googlecode.soundlibs/jlayer

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

public BitstreamException(int errorcode, Throwable t) {
  this(getErrorString(errorcode), t);
  this.errorcode = errorcode;
}
origin: tulskiy/musique

if ((ex.getErrorCode() == INVALIDFRAME)) {
    if ((e.getErrorCode() != STREAM_EOF)) {
      throw newBitstreamException(e.getErrorCode(), e);
} else if ((ex.getErrorCode() != STREAM_EOF)) {
  throw newBitstreamException(ex.getErrorCode(), ex);
origin: pdudits/soundlibs

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

public BitstreamException (int errorcode, Throwable t) {
  this(getErrorString(errorcode), t);
  this.errorcode = errorcode;
}
origin: tulskiy/musique

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

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

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);
}
javazoom.jl.decoderBitstreamException

Javadoc

Instances of BitstreamException are thrown when operations on a Bitstream fail.

The exception provides details of the exception condition in two ways:

  1. as an error-code describing the nature of the error


  2. as the Throwable instance, if any, that was thrown indicating that an exceptional condition has occurred.

Most used methods

  • <init>
  • getErrorCode
  • getErrorString
  • printStackTrace

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JComboBox (javax.swing)
  • JOptionPane (javax.swing)
  • Top plugins for Android Studio
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