KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > schlichtherle > io > ArchiveOutputBusyWarningException


1 /*
2  * ArchiveOutputBusyException.java
3  *
4  * Created on 5. Oktober 2006, 17:12
5  */

6
7 package de.schlichtherle.io;
8
9 /**
10  * Like its super class, but signals the existance of open output streams.
11  *
12  * @author Christian Schlichtherle
13  */

14 public class ArchiveOutputBusyWarningException extends ArchiveBusyWarningException {
15
16     private final int numStreams;
17
18     public ArchiveOutputBusyWarningException(
19             ArchiveException priorException, String JavaDoc canPath, int numStreams) {
20         super(priorException, canPath);
21         this.numStreams = numStreams;
22     }
23
24     /**
25      * Returns the number of open entry output streams, whereby an open stream
26      * is a stream which's <code>close()</code> method hasn't been called.
27      */

28     public int getNumStreams() {
29         return numStreams;
30     }
31 }
32
Popular Tags