de.hs_rm.cs.lecturenotes.server.core.logical.extractcode
Class ExtractCode

java.lang.Object
  extended by de.hs_rm.cs.lecturenotes.server.core.logical.extractcode.ExtractCode

public final class ExtractCode
extends java.lang.Object

Originates from ExtractCode. There were made some minor changes and cleanups.

Version:
$LastChangedRevision: 262 $
Author:
Enrico Homann

Field Summary
static java.lang.String XSL_COMPLETE
          XSL Complete.
static java.lang.String XSL_END
          XSL End.
static java.lang.String XSL_START
          XSL Start.
 
Constructor Summary
ExtractCode(java.lang.String sDirectory)
          Constructor.
 
Method Summary
 void extract(java.io.InputStream is)
          Will extract source code for InputStream f.
 void extract(Lecture lecture)
          Extracts the programming source code classes for Lecture lecture.
 void extract(org.w3c.dom.Node node)
          Will extract source code for child notes of Node n.
 org.w3c.dom.Node extractNodeFrom(java.io.InputStream inStr)
          Will return the Node related for the input InputStream inStr.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSL_START

public static final java.lang.String XSL_START
XSL Start.

See Also:
Constant Field Values

XSL_END

public static final java.lang.String XSL_END
XSL End.

See Also:
Constant Field Values

XSL_COMPLETE

public static final java.lang.String XSL_COMPLETE
XSL Complete.

See Also:
Constant Field Values
Constructor Detail

ExtractCode

public ExtractCode(java.lang.String sDirectory)
Constructor.

Parameters:
sDirectory - String
Method Detail

extract

public void extract(java.io.InputStream is)
             throws javax.xml.parsers.ParserConfigurationException,
                    javax.xml.transform.TransformerException,
                    org.xml.sax.SAXException,
                    java.io.IOException
Will extract source code for InputStream f.

Parameters:
is - InputStream
Throws:
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException

extract

public void extract(org.w3c.dom.Node node)
             throws javax.xml.parsers.ParserConfigurationException,
                    javax.xml.transform.TransformerException,
                    java.io.IOException
Will extract source code for child notes of Node n.

Parameters:
node - Node
Throws:
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
java.io.IOException

extractNodeFrom

public org.w3c.dom.Node extractNodeFrom(java.io.InputStream inStr)
                                 throws org.xml.sax.SAXException,
                                        java.io.IOException,
                                        javax.xml.parsers.ParserConfigurationException,
                                        javax.xml.transform.TransformerException
Will return the Node related for the input InputStream inStr.

Parameters:
inStr - InputStream
Returns:
Node
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerException

extract

public void extract(Lecture lecture)
Extracts the programming source code classes for Lecture lecture.

Parameters:
lecture - Lecture