001/**
002 * Java Web Archive Toolkit - Software to read and validate ARC, WARC
003 * and GZip files. (http://jwat.org/)
004 * Copyright 2011-2012 Netarkivet.dk (http://netarkivet.dk/)
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License");
007 * you may not use this file except in compliance with the License.
008 * You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018package org.jwat.gzip;
019
020/**
021 * GZip extra data container.
022 *
023 * @author nicl
024 */
025public class GzipExtraData {
026
027    /** Subfield ID1. */
028    public byte si1;
029
030    /** Subfield ID2. */
031    public byte si2;
032
033    /** Subfield data. */
034    public byte[] data;
035
036    /**
037     * Construct a non initialized object.
038     */
039    public GzipExtraData() {
040    }
041
042    /**
043     * Initializing constructor used by unit tests.
044     * @param si1 subfield ID1
045     * @param si2 subfield ID2
046     * @param data byte data
047     */
048    public GzipExtraData(byte si1, byte si2, byte[] data) {
049        this.si1 = si1;
050        this.si2 = si2;
051        this.data = data;
052    }
053
054}