diff options
Diffstat (limited to 'src/com/github/junrar/Volume.java')
-rw-r--r-- | src/com/github/junrar/Volume.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/com/github/junrar/Volume.java b/src/com/github/junrar/Volume.java new file mode 100644 index 0000000..edc17ae --- /dev/null +++ b/src/com/github/junrar/Volume.java @@ -0,0 +1,44 @@ +/* + * This file is part of seedbox <github.com/seedbox>. + * + * seedbox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * seedbox is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with seedbox. If not, see <http://www.gnu.org/licenses/>. + */ +package com.github.junrar; + +import java.io.IOException; + +import com.github.junrar.io.IReadOnlyAccess; + + +/** + * @author <a href="http://www.rogiel.com">Rogiel</a> + * + */ +public interface Volume { + /** + * @return the access + * @throws IOException + */ + IReadOnlyAccess getReadOnlyAccess() throws IOException; + + /** + * @return the data length + */ + long getLength(); + + /** + * @return the archive this volume belongs to + */ + Archive getArchive(); +} |