Top Description Fields Constructors Methods
com.rometools.utils

public final Class IO

extends Object
Class Inheritance
Imports
java.io.Closeable, .IOException, org.slf4j.Logger, .LoggerFactory

Utility class to handle I/O operations.

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
private
IO()

Method Summary

Modifier and TypeMethod and Description
public static void
close(final Closeable
The Closeable to close
closeable
)

Closes a Closeable object without suppressing a possible IOException.

public static void
closeQuietly(final Closeable
The Closeable to close
closeable
)

Closes a Closeable object and suppresses a possible IOException.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG

Constructor Detail

IOback to summary
private IO()

Method Detail

closeback to summary
public static void close(final Closeable closeable) throws IOException

Closes a Closeable object without suppressing a possible IOException.

Parameters
closeable:Closeable

The Closeable to close

Exceptions
IOException:
when the Closeable can't be closed
closeQuietlyback to summary
public static void closeQuietly(final Closeable closeable)

Closes a Closeable object and suppresses a possible IOException.

Parameters
closeable:Closeable

The Closeable to close