KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > poifs > eventfilesystem > POIFSReaderEvent


1
2 /* ====================================================================
3    Copyright 2002-2004 Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 ==================================================================== */

17         
18
19 package org.apache.poi.poifs.eventfilesystem;
20
21 import org.apache.poi.poifs.filesystem.DocumentInputStream;
22 import org.apache.poi.poifs.filesystem.POIFSDocumentPath;
23
24 /**
25  * Class POIFSReaderEvent
26  *
27  * @author Marc Johnson (mjohnson at apache dot org)
28  * @version %I%, %G%
29  */

30
31 public class POIFSReaderEvent
32 {
33     private DocumentInputStream stream;
34     private POIFSDocumentPath path;
35     private String JavaDoc documentName;
36
37     /**
38      * package scoped constructor
39      *
40      * @param stream the DocumentInputStream, freshly opened
41      * @param path the path of the document
42      * @param documentName the name of the document
43      */

44
45     POIFSReaderEvent(final DocumentInputStream stream,
46                      final POIFSDocumentPath path, final String JavaDoc documentName)
47     {
48         this.stream = stream;
49         this.path = path;
50         this.documentName = documentName;
51     }
52
53     /**
54      * @return the DocumentInputStream, freshly opened
55      */

56
57     public DocumentInputStream getStream()
58     {
59         return stream;
60     }
61
62     /**
63      * @return the document's path
64      */

65
66     public POIFSDocumentPath getPath()
67     {
68         return path;
69     }
70
71     /**
72      * @return the document's name
73      */

74
75     public String JavaDoc getName()
76     {
77         return documentName;
78     }
79 } // end public class POIFSReaderEvent
80

81
Popular Tags