|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.graphic.factory.GraphicFactory
org.foray.graphic.factory.MathFactory
public class MathFactory
Factory that tests the graphic to see if it is a MathML document, and creates an appropriate Graphic instance if it is.
Field Summary | |
---|---|
protected static int |
SIG_LENGTH
The number of bytes to read when testing whether a file is a MathML document. |
Constructor Summary | |
---|---|
MathFactory(GraphicServer4a server)
Constructor. |
Method Summary | |
---|---|
SVGGraphic |
attemptCreate(URL url,
BufferedInputStream bis)
Subclasses implement this method to try to create an appropriate Graphic instance. |
static InputStream |
getMathMLDtdAsInputStream(String fileName)
Returns a MathML DTD component as an InputStream. |
static LSInput |
getMathMLDtdAsLsInputStream(String fileName)
Returns the MathML DTD as an LSInput instance. |
static LSResourceResolver |
getMathMLDtdResourceResolver()
Returns an LSResourceResolver that knows how to find the local copy of the MathML DTD. |
Methods inherited from class org.foray.graphic.factory.GraphicFactory |
---|
getLogger, getServer, makeGraphic, maxBytesToVerify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int SIG_LENGTH
Constructor Detail |
---|
public MathFactory(GraphicServer4a server)
server
- The parent graphic server.Method Detail |
---|
public SVGGraphic attemptCreate(URL url, BufferedInputStream bis) throws IOException
GraphicFactory
attemptCreate
in class GraphicFactory
url
- The URL which contains the graphic content.bis
- The reusable input stream containing the bytes from url
.
IOException
- For IO errors.public static InputStream getMathMLDtdAsInputStream(String fileName)
fileName
- The name of the file to be retrieved.
public static LSInput getMathMLDtdAsLsInputStream(String fileName)
fileName
- The name of the file to be retrieved.
public static LSResourceResolver getMathMLDtdResourceResolver()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |