26daeb9dffa49fbdbbab686af316b05bb1b3d6eb
[IRC.git] / Robust / src / Tests / ssJava / mp3decoder / BitstreamErrors.java
1 /*\r
2  * 11/19/04             1.0 moved to LGPL.\r
3  * 11/17/04             INVALIDFRAME code added.        javalayer@javazoom.net\r
4  * 12/12/99             Initial version.                        mdm@techie.com\r
5  *-----------------------------------------------------------------------\r
6  *   This program is free software; you can redistribute it and/or modify\r
7  *   it under the terms of the GNU Library General Public License as published\r
8  *   by the Free Software Foundation; either version 2 of the License, or\r
9  *   (at your option) any later version.\r
10  *\r
11  *   This program is distributed in the hope that it will be useful,\r
12  *   but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14  *   GNU Library General Public License for more details.\r
15  *\r
16  *   You should have received a copy of the GNU Library General Public\r
17  *   License along with this program; if not, write to the Free Software\r
18  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
19  *----------------------------------------------------------------------\r
20  */\r
21 \r
22 package javazoom.jl.decoder;\r
23 \r
24 /**\r
25  * This interface describes all error codes that can be thrown \r
26  * in <code>BistreamException</code>s.\r
27  * \r
28  * @see BitstreamException\r
29  * \r
30  * @author      MDM             12/12/99\r
31  * @since       0.0.6\r
32  */\r
33 \r
34 public interface BitstreamErrors extends JavaLayerErrors\r
35 {\r
36         \r
37         /**\r
38          * An undeterminable error occurred. \r
39          */\r
40         static public final int UNKNOWN_ERROR = BITSTREAM_ERROR + 0;\r
41         \r
42         /**\r
43          * The header describes an unknown sample rate.\r
44          */\r
45         static public final int UNKNOWN_SAMPLE_RATE = BITSTREAM_ERROR + 1;\r
46 \r
47         /**\r
48          * A problem occurred reading from the stream.\r
49          */\r
50         static public final int STREAM_ERROR = BITSTREAM_ERROR + 2;\r
51         \r
52         /**\r
53          * The end of the stream was reached prematurely. \r
54          */\r
55         static public final int UNEXPECTED_EOF = BITSTREAM_ERROR + 3;\r
56         \r
57         /**\r
58          * The end of the stream was reached. \r
59          */\r
60         static public final int STREAM_EOF = BITSTREAM_ERROR + 4;\r
61         \r
62         /**\r
63          * Frame data are missing. \r
64          */\r
65         static public final int INVALIDFRAME = BITSTREAM_ERROR + 5;\r
66 \r
67         /**\r
68          * \r
69          */\r
70         static public final int BITSTREAM_LAST = 0x1ff;\r
71         \r
72 }\r