Package org.apache.solr.common.util
Class IOUtils
java.lang.Object
org.apache.solr.common.util.IOUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharsetcharsetForName(String charsetName) Resolves a charset name (typically from a Content-Type header) to aCharset.static voidcloseQuietly(AutoCloseable closeable) static voidcloseQuietly(Iterable<? extends AutoCloseable> closeables)
-
Constructor Details
-
IOUtils
public IOUtils()
-
-
Method Details
-
closeQuietly
-
closeQuietly
-
charsetForName
Resolves a charset name (typically from a Content-Type header) to aCharset. UnlikeCharset.forName(String), an illegal or unsupported name results in a checkedUnsupportedEncodingException, matching the behavior of the legacyString-based JDK charset APIs, so callers can treat a bad charset as an I/O error.- Throws:
UnsupportedEncodingException
-