[CJ-dev] commonjava-projects/commonjava-codec/src/java/org/commonjava/codec/encode ObjectFormatExcep
Brought to you by:
johnqueso
From: <joh...@co...> - 2004-02-16 07:11:12
|
Update of /cvsroot/commonjava/commonjava-projects/commonjava-codec/src/java/org/commonjava/codec/encode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31886/src/java/org/commonjava/codec/encode Modified Files: ObjectFormatException.java XmlFormatter.java Log Message: deprecated Base64 and XmlFormatter in favor of the commonjava-util versions. This package is officially on its way to becoming defunct. Abandon ship!!! Index: ObjectFormatException.java =================================================================== RCS file: /cvsroot/commonjava/commonjava-projects/commonjava-codec/src/java/org/commonjava/codec/encode/ObjectFormatException.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ObjectFormatException.java 18 Sep 2003 00:38:36 -0000 1.1 +++ ObjectFormatException.java 16 Feb 2004 07:03:23 -0000 1.2 @@ -8,7 +8,7 @@ /* - * ObjectFormatException.java + * XmlFormatException.java * * Created on September 29, 2002, 5:03 AM */ @@ -23,11 +23,11 @@ */ public class ObjectFormatException extends CommonJavaException{ - /** Creates a new instance of ObjectFormatException */ + /** Creates a new instance of XmlFormatException */ public ObjectFormatException() { } - /** Creates a new instance of ObjectFormatException + /** Creates a new instance of XmlFormatException * @param message The message. * @param root The root cause. */ @@ -35,14 +35,14 @@ super(message, root); } - /** Creates a new instance of ObjectFormatException + /** Creates a new instance of XmlFormatException * @param message The message. */ public ObjectFormatException(String message) { super(message); } - /** Creates a new instance of ObjectFormatException + /** Creates a new instance of XmlFormatException * @param root The root cause. */ public ObjectFormatException(Throwable root) { Index: XmlFormatter.java =================================================================== RCS file: /cvsroot/commonjava/commonjava-projects/commonjava-codec/src/java/org/commonjava/codec/encode/XmlFormatter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- XmlFormatter.java 18 Sep 2003 00:38:36 -0000 1.1 +++ XmlFormatter.java 16 Feb 2004 07:03:23 -0000 1.2 @@ -29,6 +29,7 @@ /** Formatter for translating objects into XML. * * @author John Casey + * @deprecated Use commonjava-util/XmlFormatter instead. */ public class XmlFormatter { @@ -78,7 +79,7 @@ } /** Write the opening document header to the sink. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ public void openDocument() throws ObjectFormatException{ try{ @@ -94,7 +95,7 @@ * @param element The element name to write out. * @param attributes The attributes to write out. * @param namespaces The namespaces for each attribute. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ public void writeEmptyElement(String element, Map attributes, Map namespaces) throws ObjectFormatException @@ -115,7 +116,7 @@ * @param element The element name to write out. * @param attributes The attributes to write out. * @param namespaces The namespaces for each attribute. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ public void openElement(String element, Map attributes, Map namespaces) throws ObjectFormatException @@ -136,7 +137,7 @@ /** Close the latest element on the open element stack, and write to the sink. * @return the name of the element closed. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ public String closeLastElement() throws ObjectFormatException{ return _closeLastElement(); @@ -144,7 +145,7 @@ /** Write an element's body text to the sink. * @param value The text to write to the element's body. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ public void writeElementValue(String value) throws ObjectFormatException{ if(value == null){return;} @@ -153,7 +154,7 @@ /** Write an element's body text to the sink, wrapped in CDATA tags. * @param value The text to write to the element's body. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ public void writeCDATAElementValue(String value) throws ObjectFormatException{ if(value == null){return;} @@ -162,7 +163,7 @@ /** Write a boolean to the element's body text in the sink. * @param value The boolean to write to the element's body. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ public void writeElementValue(boolean value) throws ObjectFormatException{ _writeElementValue(String.valueOf(value)); @@ -170,14 +171,14 @@ /** Write a boolean to the element's body text in the sink, wrapped in CDATA tags. * @param value The boolean to write to the element's body. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ public void writeCDATAElementValue(boolean value) throws ObjectFormatException{ _writeCDATAElementValue(String.valueOf(value)); } /** Close all open elements, and write them to the sink. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ public void finishDocument() throws ObjectFormatException{ for(int i=0, len=nestingLevels.size(); i<len; i++){ @@ -200,7 +201,7 @@ * @param element The element name. * @param attributes The element's attributes. * @param namespaces The namespaces for attributes. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ private void writeElementStart(String element, Map attributes, Map namespaces) throws ObjectFormatException @@ -241,7 +242,7 @@ * dependencies. * * @param value The String to write to the element's body. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ private void _writeElementValue(String value) throws ObjectFormatException{ if(value == null){return;} @@ -269,7 +270,7 @@ * causing lateral API dependencies. * * @param value The String to write to the element's body. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ private void _writeCDATAElementValue(String value) throws ObjectFormatException{ if(value == null){return;} @@ -301,7 +302,7 @@ * provided as a common piece of code to promote code reuse between the * closeLastElement() and finishDocument() methods, to avoid lateral API * dependencies. - * @throws ObjectFormatException in case of an error writing to the sink. + * @throws XmlFormatException in case of an error writing to the sink. */ private String _closeLastElement() throws ObjectFormatException{ try{ |