fi.hut.tml.xsmiles.mlfc.general
Class Helper

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.general.Helper

public class Helper
extends java.lang.Object


Field Summary
 java.lang.String documentBase
           
 
Constructor Summary
Helper()
           
 
Method Summary
static long copyStream(java.io.InputStream in, java.io.OutputStream out, int buffersize)
           
static long copyStream(java.io.Reader in, java.io.Writer out, int buffersize)
           
 java.lang.String parseRelativeURL(java.lang.String src)
          parses an element's relative URL into a complete URL
 java.lang.String parseRelativeURL(java.lang.String src, XMLDocument xmldoc)
           
 void setDocumentBase(XMLDocument xmldoc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

documentBase

public java.lang.String documentBase
Constructor Detail

Helper

public Helper()
Method Detail

parseRelativeURL

public java.lang.String parseRelativeURL(java.lang.String src,
                                         XMLDocument xmldoc)

setDocumentBase

public void setDocumentBase(XMLDocument xmldoc)

parseRelativeURL

public java.lang.String parseRelativeURL(java.lang.String src)
parses an element's relative URL into a complete URL

Returns:
The parsed string (the same as URL.toString() would give

copyStream

public static long copyStream(java.io.InputStream in,
                              java.io.OutputStream out,
                              int buffersize)
                       throws java.io.IOException
Throws:
java.io.IOException

copyStream

public static long copyStream(java.io.Reader in,
                              java.io.Writer out,
                              int buffersize)
                       throws java.io.IOException
Throws:
java.io.IOException


X-Smiles 1.2