KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > schlichtherle > io > archive > zip > Zip32Entry


1 /*
2  * ArchiveEntry.java
3  *
4  * Created on 26. Februar 2006, 19:08
5  */

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

21
22 package de.schlichtherle.io.archive.zip;
23
24 import de.schlichtherle.io.ArchiveEntryMetaData;
25 import de.schlichtherle.io.archive.spi.ArchiveEntry;
26 import de.schlichtherle.util.zip.ZipEntry;
27
28 import javax.swing.Icon JavaDoc;
29
30 /**
31  * An adapter class to make the {@link ZipEntry} class implement the
32  * {@link ArchiveEntry} interface.
33  *
34  * @see Zip32Driver
35  *
36  * @author Christian Schlichtherle
37  * @version @version@
38  * @since TrueZIP 6.0
39  */

40 public class Zip32Entry extends ZipEntry implements ArchiveEntry {
41
42     private ArchiveEntryMetaData metaData;
43
44     public Zip32Entry(String JavaDoc entryName) {
45         super(entryName);
46     }
47
48     public Zip32Entry(String JavaDoc entryName, Zip32Entry blueprint) {
49         super(blueprint);
50         setName(entryName);
51     }
52
53     public Icon JavaDoc getOpenIcon() {
54         return null;
55     }
56
57     public Icon JavaDoc getClosedIcon() {
58         return null;
59     }
60
61     //
62
// Metadata implementation.
63
//
64

65     public ArchiveEntryMetaData getMetaData() {
66         return metaData;
67     }
68
69     public void setMetaData(ArchiveEntryMetaData metaData) {
70         this.metaData = metaData;
71     }
72 }
73
Popular Tags