aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/util/DataURLUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/util/DataURLUtil.java')
-rw-r--r--src/java/org/apache/fop/util/DataURLUtil.java17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/util/DataURLUtil.java b/src/java/org/apache/fop/util/DataURLUtil.java
index 8568df274..46ff8635b 100644
--- a/src/java/org/apache/fop/util/DataURLUtil.java
+++ b/src/java/org/apache/fop/util/DataURLUtil.java
@@ -24,23 +24,34 @@ import java.io.InputStream;
import java.io.Writer;
/**
- * @deprecated
+ * @deprecated use org.apache.xmlgraphics.util.uri.DataURLUtil directly
* @see org.apache.xmlgraphics.util.uri.DataURLUtil
*/
-public class DataURLUtil {
+public final class DataURLUtil {
+
+ private DataURLUtil() {
+ }
/**
+ * @param in an input stream
+ * @param mediatype a MIME media type
+ * @return a data url as a string
+ * @throws IOException if not caught
* @deprecated
* @see org.apache.xmlgraphics.util.uri.DataURLUtil#createDataURL(InputStream,
* String)
*/
public static String createDataURL(InputStream in, String mediatype)
- throws IOException {
+ throws IOException {
return org.apache.xmlgraphics.util.uri.DataURLUtil.createDataURL(in,
mediatype);
}
/**
+ * @param in an input stream
+ * @param mediatype a MIME media type
+ * @param writer a writer
+ * @throws IOException if not caught
* @deprecated
* @see org.apache.xmlgraphics.util.uri.DataURLUtil#writeDataURL(InputStream,
* String, Writer)