[FOray-commit] SF.net SVN: foray: [8625] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2007-02-09 17:33:06
|
Revision: 8625
http://svn.sourceforge.net/foray/?rev=8625&view=rev
Author: victormote
Date: 2007-02-09 09:33:01 -0800 (Fri, 09 Feb 2007)
Log Message:
-----------
Conform to new axsl method exposing the raw image content.
Modified Paths:
--------------
trunk/foray/foray-graphic/src/java/org/foray/graphic/BMPGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/GIFGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/JPEGGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/PDFGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/PNGGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/TIFFGraphic.java
trunk/foray/foray-render/src/java/org/foray/render/TempImage.java
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/BMPGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/BMPGraphic.java 2007-02-09 16:40:23 UTC (rev 8624)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/BMPGraphic.java 2007-02-09 17:33:01 UTC (rev 8625)
@@ -440,4 +440,14 @@
return bytesPerRow;
}
+ /**
+ * {@inheritDoc}
+ */
+ public byte[] getRawSamples() throws GraphicException {
+ /* TODO: Add support for this feature. */
+ throw new GraphicException("Unsupported feature getRawSamples() in "
+ + this.getClass().getName() + "for: "
+ + this.getUrl().toExternalForm());
+ }
+
}
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java 2007-02-09 16:40:23 UTC (rev 8624)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java 2007-02-09 17:33:01 UTC (rev 8625)
@@ -342,4 +342,12 @@
return this.bbox;
}
+ /**
+ * {@inheritDoc}
+ */
+ public byte[] getRawSamples() throws GraphicException {
+ /* EPS is not typically a raster format. */
+ return null;
+ }
+
}
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/GIFGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/GIFGraphic.java 2007-02-09 16:40:23 UTC (rev 8624)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/GIFGraphic.java 2007-02-09 17:33:01 UTC (rev 8625)
@@ -252,4 +252,14 @@
return null;
}
+ /**
+ * {@inheritDoc}
+ */
+ public byte[] getRawSamples() throws GraphicException {
+ /* TODO: Add support for this feature. */
+ throw new GraphicException("Unsupported feature getRawSamples() in "
+ + this.getClass().getName() + "for: "
+ + this.getUrl().toExternalForm());
+ }
+
}
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/JPEGGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/JPEGGraphic.java 2007-02-09 16:40:23 UTC (rev 8624)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/JPEGGraphic.java 2007-02-09 17:33:01 UTC (rev 8625)
@@ -519,4 +519,14 @@
return null;
}
+ /**
+ * {@inheritDoc}
+ */
+ public byte[] getRawSamples() throws GraphicException {
+ /* TODO: Add support for this feature. */
+ throw new GraphicException("Unsupported feature getRawSamples() in "
+ + this.getClass().getName() + "for: "
+ + this.getUrl().toExternalForm());
+ }
+
}
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/PDFGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/PDFGraphic.java 2007-02-09 16:40:23 UTC (rev 8624)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/PDFGraphic.java 2007-02-09 17:33:01 UTC (rev 8625)
@@ -118,4 +118,12 @@
protected void parseBasics() throws IOException {
}
+ /**
+ * {@inheritDoc}
+ */
+ public byte[] getRawSamples() throws GraphicException {
+ /* PDF is not a raster format. */
+ return null;
+ }
+
}
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/PNGGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/PNGGraphic.java 2007-02-09 16:40:23 UTC (rev 8624)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/PNGGraphic.java 2007-02-09 17:33:01 UTC (rev 8625)
@@ -121,4 +121,14 @@
return red;
}
+ /**
+ * {@inheritDoc}
+ */
+ public byte[] getRawSamples() throws GraphicException {
+ /* TODO: Add support for this feature. */
+ throw new GraphicException("Unsupported feature getRawSamples() in "
+ + this.getClass().getName() + "for: "
+ + this.getUrl().toExternalForm());
+ }
+
}
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java 2007-02-09 16:40:23 UTC (rev 8624)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java 2007-02-09 17:33:01 UTC (rev 8625)
@@ -281,4 +281,12 @@
}
+ /**
+ * {@inheritDoc}
+ */
+ public byte[] getRawSamples() throws GraphicException {
+ /* SVG is not a raster format. */
+ return null;
+ }
+
}
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/TIFFGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/TIFFGraphic.java 2007-02-09 16:40:23 UTC (rev 8624)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/TIFFGraphic.java 2007-02-09 17:33:01 UTC (rev 8625)
@@ -209,4 +209,14 @@
return null;
}
+ /**
+ * {@inheritDoc}
+ */
+ public byte[] getRawSamples() throws GraphicException {
+ /* TODO: Add support for this feature. */
+ throw new GraphicException("Unsupported feature getRawSamples() in "
+ + this.getClass().getName() + "for: "
+ + this.getUrl().toExternalForm());
+ }
+
}
Modified: trunk/foray/foray-render/src/java/org/foray/render/TempImage.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/TempImage.java 2007-02-09 16:40:23 UTC (rev 8624)
+++ trunk/foray/foray-render/src/java/org/foray/render/TempImage.java 2007-02-09 17:33:01 UTC (rev 8625)
@@ -178,4 +178,11 @@
return -1;
}
+ /**
+ * {@inheritDoc}
+ */
+ public byte[] getRawSamples() throws GraphicException {
+ return null;
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|