All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.schlichtherle.truezip.zip.ZipCharsetParameters Maven / Gradle / Ivy

/*
 * Copyright (C) 2005-2015 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package de.schlichtherle.truezip.zip;

import java.nio.charset.Charset;

/**
 * Defines the default character set for accessing ZIP files.
 * 
 * @since   TrueZIP 7.3
 * @author  Christian Schlichtherle
 */
public interface ZipCharsetParameters extends ZipParameters {

    /**
     * Returns the default character set for comments and entry names in a ZIP
     * file.
     * Subsequent calls must return the same object.
     * 

* When reading a ZIP file, this is used to decode comments and entry names * in a ZIP file unless an entry has bit 11 set in its General Purpose Bit * Flags. * In this case, the character set is ignored and "UTF-8" is used for * decoding the entry. * This is in accordance to Appendix D of PKWARE's * ZIP File Format Specification, * version 6.3.0 and later. * * @return The default character set for comments and entry names in a ZIP * file. */ Charset getCharset(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy