link start!
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package org.apache.batik.ext.awt.image.spi;
|
||||
|
||||
public interface ErrorConstants {
|
||||
public static final String ERR_STREAM_FORMAT_UNREADABLE = "stream.format.unreadable";
|
||||
public static final String ERR_STREAM_UNREADABLE = "stream.unreadable";
|
||||
public static final String ERR_URL_FORMAT_UNREADABLE = "url.format.unreadable";
|
||||
public static final String ERR_URL_UNINTERPRETABLE = "url.uninterpretable";
|
||||
public static final String ERR_URL_UNREACHABLE = "url.unreachable";
|
||||
public static final String RESOURCES = "org.apache.batik.ext.awt.image.spi.resources.Messages";
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.batik.ext.awt.image.spi;
|
||||
|
||||
import java.awt.image.RenderedImage;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
|
||||
public interface ImageWriter {
|
||||
String getMIMEType();
|
||||
|
||||
void writeImage(RenderedImage renderedImage, OutputStream outputStream) throws IOException;
|
||||
|
||||
void writeImage(RenderedImage renderedImage, OutputStream outputStream, ImageWriterParams imageWriterParams) throws IOException;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.batik.ext.awt.image.spi;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RegistryEntry {
|
||||
String getFormatName();
|
||||
|
||||
List getMimeTypes();
|
||||
|
||||
float getPriority();
|
||||
|
||||
List getStandardExtensions();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package org.apache.batik.ext.awt.image.spi;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.StreamCorruptedException;
|
||||
import org.apache.batik.ext.awt.image.renderable.Filter;
|
||||
import org.apache.batik.util.ParsedURL;
|
||||
|
||||
public interface StreamRegistryEntry extends RegistryEntry {
|
||||
int getReadlimit();
|
||||
|
||||
Filter handleStream(InputStream inputStream, ParsedURL parsedURL, boolean z);
|
||||
|
||||
boolean isCompatibleStream(InputStream inputStream) throws StreamCorruptedException;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.apache.batik.ext.awt.image.spi;
|
||||
|
||||
import org.apache.batik.ext.awt.image.renderable.Filter;
|
||||
import org.apache.batik.util.ParsedURL;
|
||||
|
||||
public interface URLRegistryEntry extends RegistryEntry {
|
||||
Filter handleURL(ParsedURL parsedURL, boolean z);
|
||||
|
||||
boolean isCompatibleURL(ParsedURL parsedURL);
|
||||
}
|
||||
Reference in New Issue
Block a user