Package dev.enola.common.canonicalize
Class Canonicalizer
java.lang.Object
dev.enola.common.canonicalize.Canonicalizer
- All Implemented Interfaces:
ConverterInto<ReadableResource,,WritableResource> ResourceConverter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcanonicalize(ReadableResource in, WritableResource out, boolean pretty) booleanconvertInto(ReadableResource from, WritableResource into) Convert from an I into an O.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.common.convert.ConverterInto
convertIntoOrThrow
-
Field Details
-
PRETTY_QUERY_PARAMETER
- See Also:
-
-
Constructor Details
-
Canonicalizer
-
-
Method Details
-
canonicalize
public void canonicalize(ReadableResource in, WritableResource out, boolean pretty) throws IOException - Throws:
IOException
-
convertInto
public boolean convertInto(ReadableResource from, WritableResource into) throws ConversionException, IOException Description copied from interface:ConverterIntoConvert from an I into an O.- Specified by:
convertIntoin interfaceConverterInto<ReadableResource,WritableResource> - Parameters:
from- the input to convertinto- the destination where to output- Returns:
- true if conversion was successful, false if this converter cannot handle it; see
ConverterIntoChain - Throws:
ConversionException- in case of conversion problems or technical failures to read from I or write to OIOException- TODO wrap IOException into ConversionException and remove throws
-