
it.could.util.encoding.EncodingAware Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webdav Show documentation
Show all versions of webdav Show documentation
A Simple Approach to WebDAV (Servlet Implementation)
The newest version!
/* ========================================================================== *
* Copyright (C) 2004-2006, Pier Fumagalli *
* All rights reserved. *
* ========================================================================== *
* *
* Licensed under the Apache License, Version 2.0 (the "License"). You may *
* not use this file except in compliance with the License. You may obtain a *
* copy of the License at . *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT *
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the *
* License for the specific language governing permissions and limitations *
* under the License. *
* *
* ========================================================================== */
package it.could.util.encoding;
import java.io.ByteArrayOutputStream;
import java.io.OutputStreamWriter;
/**
* The {@link EncodingAware} interface describes an {@link Object} aware
* of multiple encodings existing withing the platform.
*
* @author Pier Fumagalli
*/
public interface EncodingAware {
/** The default encoding is specified as being UTF-8
.
*/
public static final String DEFAULT_ENCODING = "UTF-8";
/** The platform encoding is evaluated at runtime from the JVM.
*/
public static final String PLATFORM_ENCODING =
new OutputStreamWriter(new ByteArrayOutputStream()).getEncoding();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy