1bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson/*
2bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson * Copyright (C) 2011 The Android Open Source Project
3bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson *
4bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson * Licensed under the Apache License, Version 2.0 (the "License");
5bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson * you may not use this file except in compliance with the License.
6bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson * You may obtain a copy of the License at
7bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson *
8bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson *      http://www.apache.org/licenses/LICENSE-2.0
9bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson *
10bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson * Unless required by applicable law or agreed to in writing, software
11bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson * distributed under the License is distributed on an "AS IS" BASIS,
12bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson * See the License for the specific language governing permissions and
14bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson * limitations under the License.
15bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson */
16bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson
17bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilsonpackage com.android.dx.util;
18bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson
19bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson/**
20bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson * A byte source.
21bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson */
22bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilsonpublic interface ByteInput {
23bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson
24bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson    /**
25bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson     * Returns a byte.
26bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson     *
27bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson     * @throws IndexOutOfBoundsException if all bytes have been read.
28bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson     */
29bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson    byte readByte();
30bd3dba4346223593ac6033a3d2a7d8ec6f20738bJesse Wilson}
31