KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > izforge > izpack > io > VolumeNotFoundException


1 /*
2  * IzPack - Copyright 2001-2007 Julien Ponge, All Rights Reserved.
3  *
4  * http://www.izforge.com/izpack/ http://developer.berlios.de/projects/izpack/
5  *
6  * Copyright 2007 Dennis Reil
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
9  * in compliance with the License. You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software distributed under the License
14  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
15  * or implied. See the License for the specific language governing permissions and limitations under
16  * the License.
17  */

18 package com.izforge.izpack.io;
19
20 import java.io.IOException JavaDoc;
21
22 /**
23  * Exception, indicating, that a volume was not found.
24  *
25  * @author Dennis Reil, <Dennis.Reil@reddot.de>
26  */

27 public class VolumeNotFoundException extends IOException JavaDoc
28 {
29
30     protected String JavaDoc volumename;
31
32     protected long alreadyskippedbytes;
33
34     private static final long serialVersionUID = 9062182895972373707L;
35
36     public VolumeNotFoundException()
37     {
38         super();
39     }
40
41     public VolumeNotFoundException(String JavaDoc message, String JavaDoc volumename)
42     {
43         super(message);
44         this.volumename = volumename;
45     }
46
47     /**
48      * Returns the name of the volume, which couldn't be found
49      *
50      * @return the name of the volume
51      */

52     public String JavaDoc getVolumename()
53     {
54         return volumename;
55     }
56
57     /**
58      * Returns the amount of skipped bytes, if a skip-operation was in progress
59      *
60      * @return the amount of skipped bytes
61      */

62     public long getAlreadyskippedbytes()
63     {
64         return alreadyskippedbytes;
65     }
66
67     /**
68      * Sets the amount of already skipped bytes.
69      *
70      * @param alreadyskippedbytes
71      */

72     public void setAlreadyskippedbytes(long alreadyskippedbytes)
73     {
74         this.alreadyskippedbytes = alreadyskippedbytes;
75     }
76 }
Popular Tags