You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2003/03/27 11:45:37 UTC
cvs commit: xml-fop/src/java/org/apache/fop/pdf PDFUri.java
jeremias 2003/03/27 02:45:37
Modified: src/java/org/apache/fop/pdf PDFUri.java
Log:
Use the toPDFString() (returns String) method instead of toPDF() (returns byte[]) where appropriate. String to byte[] conversion is done in PDFObject in a well-defined location instead of scattered around the codebase.
Revision Changes Path
1.2 +3 -6 xml-fop/src/java/org/apache/fop/pdf/PDFUri.java
Index: PDFUri.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/pdf/PDFUri.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PDFUri.java 11 Mar 2003 13:05:09 -0000 1.1
+++ PDFUri.java 27 Mar 2003 10:45:37 -0000 1.2
@@ -76,13 +76,10 @@
}
/**
- * There is nothing to return for the toPDF method
- * as it should not be called.
- *
- * @return an empty array
+ * @see org.apache.fop.pdf.PDFObject#toPDFString()
*/
- public byte[] toPDF() {
- return new byte[0];
+ public String toPDFString() {
+ throw new UnsupportedOperationException("This method should not be called");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org