diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-11-14 12:55:46 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-11-14 12:55:46 +0000 |
commit | 18536029a6533a850dd1508f938b0ad20f1a0e72 (patch) | |
tree | ce799e9527fc49e4bbb527c125920591b545c939 /src/java/org/apache/fop/render/ps/PSFontUtils.java | |
parent | f848d591de7458a04b111d243935b08bbd47c5fd (diff) | |
download | xmlgraphics-fop-18536029a6533a850dd1508f938b0ad20f1a0e72.tar.gz xmlgraphics-fop-18536029a6533a850dd1508f938b0ad20f1a0e72.zip |
Updated from Jakarta Commons IO 1.0 to 1.1. CopyUtils.copy() becomes IOUtils.copy() again. CopyUtils in 1.0 was not ideal design decision.
Fixed most of the unappropriate System.err/System.out/Exception.printStackTrace(). Those that aren't fixed and are not legitimate calls (in main() methods etc.) are marked with a TODO item.
Some Javadocs and style updates.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344111 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/ps/PSFontUtils.java')
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSFontUtils.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSFontUtils.java b/src/java/org/apache/fop/render/ps/PSFontUtils.java index 867f1657e..e04f3e2fc 100644 --- a/src/java/org/apache/fop/render/ps/PSFontUtils.java +++ b/src/java/org/apache/fop/render/ps/PSFontUtils.java @@ -29,8 +29,8 @@ import java.util.Map; import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; -import org.apache.commons.io.CopyUtils; import org.apache.commons.io.EndianUtils; +import org.apache.commons.io.IOUtils; import org.apache.fop.fonts.CustomFont; import org.apache.fop.fonts.FontInfo; import org.apache.fop.fonts.FontType; @@ -116,7 +116,7 @@ public class PSFontUtils { gen.writeln("end"); gen.writeln("/" + fm.getFontName() + " exch definefont pop"); } else { - System.out.println("Only WinAnsiEncoding is supported. Font '" + gen.commentln("%WARNING: Only WinAnsiEncoding is supported. Font '" + fm.getFontName() + "' asks for: " + fm.getEncoding()); } } @@ -163,7 +163,7 @@ public class PSFontUtils { SubInputStream sin = new SubInputStream(in, dataSegLen); ASCIIHexOutputStream hexOut = new ASCIIHexOutputStream(gen.getOutputStream()); - CopyUtils.copy(sin, hexOut); + IOUtils.copy(sin, hexOut); gen.newLine(); break; case 3: //EOF |