~ubuntu-branches/ubuntu/utopic/libcommons-compress-java/utopic

« back to all changes in this revision

Viewing changes to src/main/java/org/apache/commons/compress/archivers/zip/AbstractUnicodeExtraField.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2013-11-02 13:55:47 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20131102135547-nhcubj3ae7rv6t13
Tags: 1.6-1
* New upstream release
* Updated Standards-Version to 3.9.5 (no changes)
* Build depend on debhelper >= 9
* Removed the unused debian/orig-tar.sh script

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
    }
103
103
 
104
104
    /**
105
 
     * @return The utf-8 encoded name.
 
105
     * @return The UTF-8 encoded name.
106
106
     */
107
107
    public byte[] getUnicodeName() {
108
108
        byte[] b = null;
114
114
    }
115
115
 
116
116
    /**
117
 
     * @param unicodeName The utf-8 encoded name to set.
 
117
     * @param unicodeName The UTF-8 encoded name to set.
118
118
     */
119
119
    public void setUnicodeName(byte[] unicodeName) {
120
120
        if (unicodeName != null) {
127
127
        data = null;
128
128
    }
129
129
 
130
 
    /** {@inheritDoc} */
131
130
    public byte[] getCentralDirectoryData() {
132
131
        if (data == null) {
133
132
            this.assembleData();
140
139
        return b;
141
140
    }
142
141
 
143
 
    /** {@inheritDoc} */
144
142
    public ZipShort getCentralDirectoryLength() {
145
143
        if (data == null) {
146
144
            assembleData();
148
146
        return new ZipShort(data.length);
149
147
    }
150
148
 
151
 
    /** {@inheritDoc} */
152
149
    public byte[] getLocalFileDataData() {
153
150
        return getCentralDirectoryData();
154
151
    }
155
152
 
156
 
    /** {@inheritDoc} */
157
153
    public ZipShort getLocalFileDataLength() {
158
154
        return getCentralDirectoryLength();
159
155
    }
160
156
 
161
 
    /** {@inheritDoc} */
162
157
    public void parseFromLocalFileData(byte[] buffer, int offset, int length)
163
158
        throws ZipException {
164
159