[Mulgara-svn] r1502 - trunk/src/jar/content-n3/java/org/mulgara/content/n3
ronald at mulgara.org
ronald at mulgara.org
Tue Feb 17 10:37:46 UTC 2009
Author: ronald
Date: 2009-02-17 02:37:45 -0800 (Tue, 17 Feb 2009)
New Revision: 1502
Modified:
trunk/src/jar/content-n3/java/org/mulgara/content/n3/N3ContentHandler.java
Log:
Minor code formatting fixes.
Modified: trunk/src/jar/content-n3/java/org/mulgara/content/n3/N3ContentHandler.java
===================================================================
--- trunk/src/jar/content-n3/java/org/mulgara/content/n3/N3ContentHandler.java 2009-02-17 10:37:39 UTC (rev 1501)
+++ trunk/src/jar/content-n3/java/org/mulgara/content/n3/N3ContentHandler.java 2009-02-17 10:37:45 UTC (rev 1502)
@@ -57,7 +57,7 @@
public class N3ContentHandler implements ContentHandler {
/** Logger. */
@SuppressWarnings("unused")
- private static Logger logger = Logger.getLogger(N3ContentHandler.class.getName());
+ private static Logger logger = Logger.getLogger(N3ContentHandler.class);
/**
* The MIME type of RDF/XML.
@@ -69,8 +69,7 @@
try {
APPLICATION_N3 = new MimeType("application", "n3");
TEXT_RDF_N3 = new MimeType("text", "rdf+n3");
- }
- catch (MimeTypeParseException e) {
+ } catch (MimeTypeParseException e) {
throw new ExceptionInInitializerError(e);
}
}
@@ -79,9 +78,7 @@
// Methods implementing ContentHandler
//
- public Statements parse(Content content, ResolverSession resolverSession)
- throws ContentHandlerException
- {
+ public Statements parse(Content content, ResolverSession resolverSession) throws ContentHandlerException {
return new N3Statements(content, resolverSession);
}
@@ -110,23 +107,21 @@
return false;
}
assert path != null;
-
+
// We recognize a fixed set of extensions
return path.endsWith(".n3") ||
path.endsWith(".nt") ||
path.endsWith(".ttl");
}
- /**
+ /**
* @throws ContentHandlerException {@inheritDoc}; this particular
* implementation doesn't implement this method and will always throw the
* exception
*/
public void serialize(Statements statements,
Content content,
- ResolverSession resolverSession)
- throws ContentHandlerException
- {
+ ResolverSession resolverSession) throws ContentHandlerException {
throw new ContentHandlerException("N3 output not implemented");
}
}
More information about the Mulgara-svn
mailing list