Path: blob/main/src/lwjgl/java/javazoom/jl/decoder/Source.java
8650 views
/*1* 11/19/04 1.0 moved to LGPL.2*-----------------------------------------------------------------------3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU Library General Public License as published5* by the Free Software Foundation; either version 2 of the License, or6* (at your option) any later version.7*8* This program is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11* GNU Library General Public License for more details.12*13* You should have received a copy of the GNU Library General Public14* License along with this program; if not, write to the Free Software15* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.16*----------------------------------------------------------------------17*/1819package javazoom.jl.decoder;2021import java.io.IOException;2223/**24* Work in progress.25*26* Class to describe a seekable data source.27*28*/29public interface Source30{3132public static final long LENGTH_UNKNOWN = -1;3334public int read(byte[] b, int offs, int len)35throws IOException;363738public boolean willReadBlock();3940public boolean isSeekable();4142public long length();4344public long tell();4546public long seek(long pos);4748}495051