abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Moseley" <...@osafoundation.org>
Subject Re: svn commit: r596764 - in /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera: util/AbstractStreamWriter.java writer/StreamWriter.java
Date Tue, 20 Nov 2007 19:47:28 GMT
On Nov 20, 2007 10:53 AM, James M Snell <jasnell@gmail.com> wrote:
> This is good, but atom:feed isn't the only place we need to have
> xml:lang and xml:base support.  With the writeAttribute method, we can
> have writeLanguage() and writeBase() methods that set those attributes
> wherever they're needed.
>
>   public StreamWriter writeLanguage(String lang) {
>     return writeAttribute(Constants.LANG, lang);
>   }
>
>   public StreamWriter writeBase(IRI base) {
>     return writeBase(base.toString());
>   }
>
>   public StreamWriter writeBase(String base) {
>     return writeAttribute(Constants.BASE, base);
>   }
>
> I can add these if you'd like.

sure thing. i was scratching a localized itch, but this is a superior idea.

fyi, i'm refactoring Cosmo to use streamed writing. it's requiring a
lot of changes, but it's clearly a better direction.

Mime
View raw message