summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/gnu/xml/libxmlj/transform
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/gnu/xml/libxmlj/transform')
-rw-r--r--libjava/classpath/gnu/xml/libxmlj/transform/ErrorListenerErrorHandler.java8
-rwxr-xr-xlibjava/classpath/gnu/xml/libxmlj/transform/GnomeTransformer.java30
-rwxr-xr-xlibjava/classpath/gnu/xml/libxmlj/transform/GnomeTransformerFactory.java26
-rw-r--r--libjava/classpath/gnu/xml/libxmlj/transform/URIResolverEntityResolver.java2
4 files changed, 33 insertions, 33 deletions
diff --git a/libjava/classpath/gnu/xml/libxmlj/transform/ErrorListenerErrorHandler.java b/libjava/classpath/gnu/xml/libxmlj/transform/ErrorListenerErrorHandler.java
index 0601e5e8987..398a0ba2e3e 100644
--- a/libjava/classpath/gnu/xml/libxmlj/transform/ErrorListenerErrorHandler.java
+++ b/libjava/classpath/gnu/xml/libxmlj/transform/ErrorListenerErrorHandler.java
@@ -1,4 +1,4 @@
-/* ErrorListenerErrorHandler.java -
+/* ErrorListenerErrorHandler.java -
Copyright (C) 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -71,7 +71,7 @@ implements ErrorHandler
throw getSAXException (te);
}
}
-
+
public void error (SAXParseException e)
throws SAXException
{
@@ -84,7 +84,7 @@ implements ErrorHandler
throw getSAXException (te);
}
}
-
+
public void fatalError (SAXParseException e)
throws SAXException
{
@@ -107,5 +107,5 @@ implements ErrorHandler
}
return new SAXException (e);
}
-
+
}
diff --git a/libjava/classpath/gnu/xml/libxmlj/transform/GnomeTransformer.java b/libjava/classpath/gnu/xml/libxmlj/transform/GnomeTransformer.java
index 37aa05b9359..5f31cb898e7 100755
--- a/libjava/classpath/gnu/xml/libxmlj/transform/GnomeTransformer.java
+++ b/libjava/classpath/gnu/xml/libxmlj/transform/GnomeTransformer.java
@@ -1,4 +1,4 @@
-/* GnomeTransformer.java -
+/* GnomeTransformer.java -
Copyright (C) 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -120,19 +120,19 @@ public class GnomeTransformer
* @param errorListener the error listener for transformation errors
*/
GnomeTransformer (Source source,
- URIResolver resolver,
- ErrorListener errorListener)
+ URIResolver resolver,
+ ErrorListener errorListener)
throws TransformerConfigurationException
{
this.resolver = resolver;
this.errorListener = errorListener;
parameters = new HashMap ();
outputProperties = new Properties ();
-
+
if (source == null)
{
stylesheet = newStylesheet ();
- }
+ }
else if (source instanceof StreamSource)
{
try
@@ -176,12 +176,12 @@ public class GnomeTransformer
throw new TransformerConfigurationException (msg);
}
}
-
+
/**
* Copy constructor.
*/
private GnomeTransformer (Object stylesheet,
- URIResolver resolver,
+ URIResolver resolver,
ErrorListener errorListener,
Map parameters,
Properties outputProperties)
@@ -215,7 +215,7 @@ public class GnomeTransformer
public synchronized void setParameter (String parameter, Object value)
{
parameters.put (parameter, value);
- }
+ }
public synchronized Object getParameter (String name)
{
@@ -232,7 +232,7 @@ public class GnomeTransformer
public void setErrorListener (ErrorListener listener)
{
this.errorListener = listener;
- }
+ }
public ErrorListener getErrorListener ()
{
@@ -244,7 +244,7 @@ public class GnomeTransformer
public void setURIResolver (URIResolver resolver)
{
this.resolver = resolver;
- }
+ }
public URIResolver getURIResolver ()
{
@@ -259,12 +259,12 @@ public class GnomeTransformer
{
// Note: defensive copying
this.outputProperties = new Properties (outputProperties);
- }
+ }
public void setOutputProperty (String name, String value)
{
outputProperties.setProperty (name, value);
- }
+ }
public Properties getOutputProperties ()
{
@@ -510,7 +510,7 @@ public class GnomeTransformer
throw new TransformerException (e);
}
}
-
+
private void setDocumentLocator (Object ctx, Object loc)
{
}
@@ -550,7 +550,7 @@ public class GnomeTransformer
systemId);
errorListener.error (new TransformerException (message, l));
}
-
+
private void fatalError (String message,
int lineNumber,
int columnNumber,
@@ -568,5 +568,5 @@ public class GnomeTransformer
systemId);
errorListener.fatalError (new TransformerException (message, l));
}
-
+
}
diff --git a/libjava/classpath/gnu/xml/libxmlj/transform/GnomeTransformerFactory.java b/libjava/classpath/gnu/xml/libxmlj/transform/GnomeTransformerFactory.java
index 78dfe2148b6..4a0100a2110 100755
--- a/libjava/classpath/gnu/xml/libxmlj/transform/GnomeTransformerFactory.java
+++ b/libjava/classpath/gnu/xml/libxmlj/transform/GnomeTransformerFactory.java
@@ -1,4 +1,4 @@
-/* GnomeTransformerFactory.java -
+/* GnomeTransformerFactory.java -
Copyright (C) 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -86,7 +86,7 @@ public class GnomeTransformerFactory
{
XMLJ.init ();
}
-
+
/**
* URIResolver set by user, or default implementation.
*/
@@ -104,7 +104,7 @@ public class GnomeTransformerFactory
//--- Implementation of javax.xml.transform.TransformerFactory
//--- follows.
-
+
// -- begin getAssociatedStylesheet implementation --
/**
@@ -112,7 +112,7 @@ public class GnomeTransformerFactory
* <code>null</code> if no associated stylesheet could be found.
*/
public Source getAssociatedStylesheet(Source source, String media,
- String title, String charset)
+ String title, String charset)
throws TransformerConfigurationException
{
String href= null;
@@ -225,7 +225,7 @@ public class GnomeTransformerFactory
class AssociatedStylesheetHandler
extends DefaultHandler
{
-
+
String media;
String title;
String href;
@@ -246,7 +246,7 @@ public class GnomeTransformerFactory
href = parseParameter(data, "href");
}
}
-
+
}
String parseParameter(String data, String name)
@@ -270,33 +270,33 @@ public class GnomeTransformerFactory
public synchronized void setAttribute (String name, Object value)
{
this.attributes.put (name, value);
- }
+ }
public synchronized Object getAttribute (String name)
{
return attributes.get (name);
}
-
+
public void setErrorListener (ErrorListener errorListener)
{
this.errorListener = errorListener;
- }
+ }
public ErrorListener getErrorListener ()
{
return errorListener;
}
-
+
public void setURIResolver (URIResolver uriResolver)
{
this.uriResolver = uriResolver;
- }
+ }
public URIResolver getURIResolver ()
{
return uriResolver;
}
-
+
public boolean getFeature (String name)
{
return (StreamSource.FEATURE.equals (name) ||
@@ -335,7 +335,7 @@ public class GnomeTransformerFactory
* Returns a new instance of class {@link Templates} for
* the given souce.
*/
- public Templates newTemplates (Source source)
+ public Templates newTemplates (Source source)
throws TransformerConfigurationException
{
return new GnomeTransformer (source, uriResolver, errorListener);
diff --git a/libjava/classpath/gnu/xml/libxmlj/transform/URIResolverEntityResolver.java b/libjava/classpath/gnu/xml/libxmlj/transform/URIResolverEntityResolver.java
index 88a58e1a2fa..0ce71d0efc7 100644
--- a/libjava/classpath/gnu/xml/libxmlj/transform/URIResolverEntityResolver.java
+++ b/libjava/classpath/gnu/xml/libxmlj/transform/URIResolverEntityResolver.java
@@ -1,4 +1,4 @@
-/* URIResolverEntityResolver.java -
+/* URIResolverEntityResolver.java -
Copyright (C) 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
OpenPOWER on IntegriCloud