Changed package name. The standard package naming

convention with CamelCase is consistent across projects.
master
nathan 2017-09-22 09:25:27 +02:00
parent 5d5561bab7
commit 317da5f40f
20 changed files with 56 additions and 56 deletions

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser;
package dorkbox.cabParser;
public class CabException extends Exception {
private static final long serialVersionUID = 1L;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser;
package dorkbox.cabParser;
import java.io.IOException;
import java.io.InputStream;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser;
package dorkbox.cabParser;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@ -21,11 +21,11 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.util.Enumeration;
import dorkbox.cabparser.decompress.CabDecompressor;
import dorkbox.cabparser.structure.CabEnumerator;
import dorkbox.cabparser.structure.CabFileEntry;
import dorkbox.cabparser.structure.CabFolderEntry;
import dorkbox.cabparser.structure.CabHeader;
import dorkbox.cabParser.decompress.CabDecompressor;
import dorkbox.cabParser.structure.CabEnumerator;
import dorkbox.cabParser.structure.CabFileEntry;
import dorkbox.cabParser.structure.CabFolderEntry;
import dorkbox.cabParser.structure.CabHeader;
public final class CabParser {
private CabInputStream cabInputStream;

View File

@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser;
package dorkbox.cabParser;
import java.io.OutputStream;
import dorkbox.cabparser.structure.CabFileEntry;
import dorkbox.cabParser.structure.CabFileEntry;
public interface CabStreamSaver {
OutputStream openOutputStream(CabFileEntry entry);

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser;
package dorkbox.cabParser;
public final class Checksum {
@SuppressWarnings("fallthrough")

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser;
package dorkbox.cabParser;
public final class CorruptCabException extends CabException {

View File

@ -13,19 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.decompress;
package dorkbox.cabParser.decompress;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import dorkbox.cabparser.CabException;
import dorkbox.cabparser.CorruptCabException;
import dorkbox.cabparser.decompress.lzx.DecompressLzx;
import dorkbox.cabparser.decompress.none.DecompressNone;
import dorkbox.cabparser.decompress.zip.DecompressZip;
import dorkbox.cabparser.structure.CabConstants;
import dorkbox.cabparser.structure.CfDataRecord;
import dorkbox.cabParser.CabException;
import dorkbox.cabParser.CorruptCabException;
import dorkbox.cabParser.decompress.lzx.DecompressLzx;
import dorkbox.cabParser.decompress.none.DecompressNone;
import dorkbox.cabParser.decompress.zip.DecompressZip;
import dorkbox.cabParser.structure.CabConstants;
import dorkbox.cabParser.structure.CfDataRecord;
public final class CabDecompressor implements CabConstants {
private byte[] readBuffer;
@ -38,7 +38,7 @@ public final class CabDecompressor implements CabConstants {
private InputStream inputStream;
private Decompressor decompressor;
private CfDataRecord cfDataRecord;
private CfDataRecord cfDataRecord;
public CabDecompressor(InputStream paramInputStream, int sizeOfBlockData) {
this.inputStream = paramInputStream;

View File

@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.decompress;
package dorkbox.cabParser.decompress;
import dorkbox.cabparser.CabException;
import dorkbox.cabparser.structure.CabConstants;
import dorkbox.cabParser.CabException;
import dorkbox.cabParser.structure.CabConstants;
public interface Decompressor extends CabConstants {

View File

@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.decompress.lzx;
package dorkbox.cabParser.decompress.lzx;
import dorkbox.cabparser.CabException;
import dorkbox.cabparser.CorruptCabException;
import dorkbox.cabparser.decompress.Decompressor;
import dorkbox.cabParser.CabException;
import dorkbox.cabParser.CorruptCabException;
import dorkbox.cabParser.decompress.Decompressor;
public final class DecompressLzx implements Decompressor, LZXConstants {
private int[] extraBits = new int[51];

View File

@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.decompress.lzx;
package dorkbox.cabParser.decompress.lzx;
import dorkbox.cabparser.CorruptCabException;
import dorkbox.cabParser.CorruptCabException;
final class DecompressLzxTree implements LZXConstants {
private int size;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.decompress.lzx;
package dorkbox.cabParser.decompress.lzx;
public interface LZXConstants {
public static final int PRETREE_NUM_ELEMENTS = 20;

View File

@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.decompress.none;
package dorkbox.cabParser.decompress.none;
import dorkbox.cabparser.CabException;
import dorkbox.cabparser.CorruptCabException;
import dorkbox.cabparser.decompress.Decompressor;
import dorkbox.cabParser.CabException;
import dorkbox.cabParser.CorruptCabException;
import dorkbox.cabParser.decompress.Decompressor;
public final class DecompressNone implements Decompressor {
@Override

View File

@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.decompress.zip;
package dorkbox.cabParser.decompress.zip;
import dorkbox.cabparser.CabException;
import dorkbox.cabparser.CorruptCabException;
import dorkbox.cabparser.decompress.Decompressor;
import dorkbox.cabParser.CabException;
import dorkbox.cabParser.CorruptCabException;
import dorkbox.cabParser.decompress.Decompressor;
public final class DecompressZip implements Decompressor {
private static final int[] ar1 = {3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,

View File

@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.decompress.zip;
package dorkbox.cabParser.decompress.zip;
import dorkbox.cabparser.CorruptCabException;
import dorkbox.cabParser.CorruptCabException;
final class DecompressZipState {
private int intA;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.structure;
package dorkbox.cabParser.structure;
public interface CabConstants {
int CAB_BLOCK_SIZE = 32768;

View File

@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.structure;
package dorkbox.cabParser.structure;
import java.util.Enumeration;
import java.util.NoSuchElementException;
import dorkbox.cabparser.CabParser;
import dorkbox.cabParser.CabParser;
public final class CabEnumerator implements Enumeration<Object> {
private int fileCount = 0;

View File

@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.structure;
package dorkbox.cabParser.structure;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.Date;
import dorkbox.cabparser.CabException;
import dorkbox.cabparser.CorruptCabException;
import dorkbox.cabParser.CabException;
import dorkbox.cabParser.CorruptCabException;
import dorkbox.util.bytes.LittleEndian;
public final class CabFileEntry {

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.structure;
package dorkbox.cabParser.structure;
import java.io.IOException;
import java.io.InputStream;

View File

@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.structure;
package dorkbox.cabParser.structure;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import dorkbox.cabparser.CabException;
import dorkbox.cabparser.CabStreamSaver;
import dorkbox.cabparser.CorruptCabException;
import dorkbox.cabParser.CabException;
import dorkbox.cabParser.CabStreamSaver;
import dorkbox.cabParser.CorruptCabException;
import dorkbox.util.bytes.LittleEndian;
public final class CabHeader implements CabConstants {

View File

@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dorkbox.cabparser.structure;
package dorkbox.cabParser.structure;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import dorkbox.cabparser.CabException;
import dorkbox.cabparser.Checksum;
import dorkbox.cabparser.CorruptCabException;
import dorkbox.cabParser.CabException;
import dorkbox.cabParser.Checksum;
import dorkbox.cabParser.CorruptCabException;
import dorkbox.util.bytes.LittleEndian;
public final class CfDataRecord {