com.tffenterprises.music.tag.id3v2
Class PaddingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.tffenterprises.music.tag.id3v2.PaddingException
All Implemented Interfaces:
java.io.Serializable

public class PaddingException
extends java.lang.Exception

This exception is thrown when an ID3v2 frame cannot be parsed properly.

Version:
1.0d1 $Date: 2002/10/11 00:57:30 $
Author:
Guillaume Lessard
See Also:
Serialized Form

Field Summary
(package private)  long nullBytesRead
          The number of null (padding) bytes that have been read from the input stream.
 
Constructor Summary
private PaddingException()
          Constructs a PaddingException with no message.
  PaddingException(long readBytes)
          Constructs a PaddingException with as parameter only the number of padding bytes that have been read from the input stream.
  PaddingException(long readBytes, java.lang.String message)
          Constructs a PaddingException with the specified detail message in addition to the number of padding bytes that have been read from the input stream.
 
Method Summary
private  void init(long readBytes)
          This private initialization method is called following the invocation of the superclass constructor.
 long readBytes()
          Returns the number of bytes that have already been read from the stream.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nullBytesRead

long nullBytesRead
The number of null (padding) bytes that have been read from the input stream.

Constructor Detail

PaddingException

private PaddingException()
Constructs a PaddingException with no message. Should not be used.


PaddingException

public PaddingException(long readBytes,
                        java.lang.String message)
Constructs a PaddingException with the specified detail message in addition to the number of padding bytes that have been read from the input stream.

Parameters:
readBytes - The number of padding bytes that have already been read.
message - The detail message.

PaddingException

public PaddingException(long readBytes)
Constructs a PaddingException with as parameter only the number of padding bytes that have been read from the input stream.

Parameters:
readBytes - The number of padding bytes that have already been read.
Method Detail

init

private void init(long readBytes)
This private initialization method is called following the invocation of the superclass constructor.

Parameters:
readBytes - The number of padding bytes that have already been read.

readBytes

public long readBytes()
Returns the number of bytes that have already been read from the stream.

Returns:
the number of bytes that have been read from the stream.