
net.java.truevfs.comp.zip.DefaultZipCharsetParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truevfs-comp-zip Show documentation
Show all versions of truevfs-comp-zip Show documentation
Provides basic functionality for reading and writing ZIP files.
/*
* Copyright (C) 2005-2015 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truevfs.comp.zip;
import java.nio.charset.Charset;
import java.util.Objects;
import javax.annotation.concurrent.ThreadSafe;
/**
* Default implementation of {@link ZipCharsetParameters}.
*
* @author Christian Schlichtherle
*/
@ThreadSafe
class DefaultZipCharsetParameters implements ZipCharsetParameters {
private final Charset charset;
DefaultZipCharsetParameters(final Charset charset) {
this.charset = Objects.requireNonNull(charset);
}
@Override
public Charset getCharset() {
return charset;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy