X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Futil%2FCAB.java;h=a74b47f138030257760366cd2f3d75d21598cc0b;hb=de378041d5ca2aca1a2b5a31ef15ae90a86c977f;hp=b76337d1726dcaca113ec9cf24109f9a86d421d4;hpb=907508ecbe43f28f14cf773b3b5d8a7a977d9c67;p=org.ibex.core.git diff --git a/src/org/xwt/util/CAB.java b/src/org/xwt/util/CAB.java index b76337d..a74b47f 100644 --- a/src/org/xwt/util/CAB.java +++ b/src/org/xwt/util/CAB.java @@ -1,4 +1,10 @@ -// Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL] +// Copyright (C) 2003 Adam Megacz all rights reserved. +// +// You may modify, copy, and redistribute this code under the terms of +// the GNU Library Public License version 2.1, with the exception of +// the portion of clause 6a after the semicolon (aka the "obnoxious +// relink clause") + package org.xwt.util; import java.io.*; @@ -31,7 +37,7 @@ public class CAB { try { f.read(dis); } catch (CFFOLDER.UnsupportedCompressionTypeException ucte) { - throw new IOException(ucte.toString()); + throw ucte; } } @@ -230,7 +236,7 @@ public class CAB { } } - public static class BogusHeaderException extends Exception {} + public static class BogusHeaderException extends IOException {} } /** Encapsulates a CFFOLDER entry */ @@ -285,7 +291,7 @@ public class CAB { } } - public static class UnsupportedCompressionTypeException extends Exception { + public static class UnsupportedCompressionTypeException extends IOException { private int compressionType; UnsupportedCompressionTypeException(int type) {