Class ClosableFormattedResource
java.lang.Object
it.uniroma2.art.semanticturkey.extension.extpts.reformattingexporter.ClosableFormattedResource
- All Implemented Interfaces:
Closeable
,AutoCloseable
This class represents the output of a
ReformattingExporter
.- Author:
- Manuel Fiorelli
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClosableFormattedResource
build
(Consumer<OutputStream> outputStreamConsumer, String mimeType, String defaultFileExtension, Charset charset, String originalFilename) void
close()
void
writeTo
(OutputStream outputStream)
-
Field Details
-
logger
protected org.slf4j.Logger logger
-
-
Constructor Details
-
ClosableFormattedResource
-
ClosableFormattedResource
-
-
Method Details
-
getBackingFile
-
getDefaultFileExtension
-
getMIMEType
-
getCharset
-
getOriginalFilename
-
writeTo
- Throws:
IOException
-
getInputStream
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
build
public static ClosableFormattedResource build(Consumer<OutputStream> outputStreamConsumer, String mimeType, String defaultFileExtension, Charset charset, String originalFilename) throws IOException - Throws:
IOException
-