Reformating to fix checkstyle.

This commit is contained in:
Jindra Petřík
2024-08-07 18:33:17 +02:00
parent a5d3ce4f9b
commit f3da12e032
2432 changed files with 39110 additions and 44808 deletions

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2024 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library 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
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/
@@ -23,26 +23,30 @@ import java.util.Map;
import java.util.Set;
/**
* Bundle interface.
* A bundle is a collection of openable files. (e.g. SWC, ZIP, etc.)
* Bundle interface. A bundle is a collection of openable files. (e.g. SWC, ZIP,
* etc.)
*
* @author JPEXS
*/
public interface Bundle {
/**
* Gets number of openable files in the bundle.
*
* @return Number of openable files in the bundle
*/
public int length();
/**
* Gets keys of openable files in the bundle.
*
* @return Keys of openable files in the bundle
*/
public Set<String> getKeys();
/**
* Gets openable file by key.
*
* @param key Key
* @return Openable file
* @throws IOException
@@ -51,6 +55,7 @@ public interface Bundle {
/**
* Gets all openable files in the bundle.
*
* @return Map from key to seekable input stream
* @throws IOException
*/
@@ -58,18 +63,21 @@ public interface Bundle {
/**
* Gets extension of the bundle. (without dot)
*
* @return Extension of the bundle
*/
public String getExtension();
/**
* Checks if the bundle is read-only.
*
* @return True if the bundle is read-only, false otherwise
*/
public boolean isReadOnly();
/**
* Replace openable file by key.
*
* @param key Key
* @param is New input stream
* @return True if the file was replaced, false otherwise