source: osm/applications/editors/josm/plugins/opendata/includes/org/jopendocument/dom/ODPackageEntry.java

Last change on this file was 36483, checked in by stoecker, 9 days ago

set eol-style, fix checkstyle issues, add ignores

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1/*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 *
4 * Copyright 2008 jOpenDocument, by ILM Informatique. All rights reserved.
5 *
6 * The contents of this file are subject to the terms of the GNU
7 * General Public License Version 3 only ("GPL").
8 * You may not use this file except in compliance with the License.
9 * You can obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.html
10 * See the License for the specific language governing permissions and limitations under the License.
11 *
12 * When distributing the software, include this License Header Notice in each file.
13 *
14 */
15
16package org.jopendocument.dom;
17
18/**
19 * An OpenDocument package entry, ie a file or folder inside a zip.
20 */
21public class ODPackageEntry {
22
23 private final String name;
24 private String type;
25 // either byte[] or OOXMLDocument
26 private final Object data;
27 private boolean compressed;
28
29 public ODPackageEntry(String name, String type, Object data, final boolean compressed) {
30 super();
31 this.name = name;
32 this.type = type;
33 this.data = data;
34 this.compressed = compressed;
35 }
36
37 public final String getName() {
38 return this.name;
39 }
40
41 public final String getType() {
42 return this.type;
43 }
44
45 public final Object getData() {
46 return this.data;
47 }
48
49 public final boolean isCompressed() {
50 return this.compressed;
51 }
52
53 @Override
54 public String toString() {
55 return this.getClass().getSimpleName() + " " + getName() + "[" + this.getType() + "]" + getData();
56 }
57
58}
Note: See TracBrowser for help on using the repository browser.