Re: [Simple-support] Extend Format and Formatter classes
Brought to you by:
niallg
|
From: Niall G. - Y. <Nia...@yi...> - 2013-02-27 21:49:36
|
I have a think about it, however you could easily do this at a stream level by creating your own java.io.Writer implementation to capture and modify tokens before writing to the resulting stream. This would act like a stream editor. From: Max Senft [mailto:ma...@se...] Sent: Wednesday, 27 February 2013 5:31 PM To: sim...@li... Subject: Re: [Simple-support] Extend Format and Formatter classes Hi! I know that. The "empty element tag" is part of the XML specification, so it *should* be understood by any application. In my case (as well as at http://stackoverflow.com/questions/14443749/prevent-inclusion-of-empty-tag-for-an-empty-elementlist-in-an-elementlistunion) the problem is, that the code of the communication partner cannot be changed. It does not understand this "empty element tag"! Since my changes hide the changes, a standard usage of it will not be noticed by anyone. But the ones looking for that feature will find it at a appropriate place (the Format object). Best regards Max Senft -------- Ursprüngliche Nachricht -------- Von: Niall Gallagher <gal...@ya...<mailto:gal...@ya...>> Datum: An: sim...@li...,Max<mailto:sim...@li...,Max> Senft <ma...@se...<mailto:ma...@se...>> Betreff: Re: [Simple-support] Extend Format and Formatter classes In XML there is no difference between <x></x> and </x>, what is the technical benefit of using this? --- On Fri, 22/2/13, Max Senft <ma...@se...<mailto:ma...@se...>> wrote: > From: Max Senft <ma...@se...<mailto:ma...@se...>> > Subject: Re: [Simple-support] Extend Format and Formatter classes > To: sim...@li...<mailto:sim...@li...> > Received: Friday, 22 February, 2013, 1:21 AM > Hi again! > > I added my solution to StackOverflow which includes a huge > and quite complex set of classes to be able to use the > Converter interface for my special purposes AND a proposal > for source code changes of Simple. > > I now did the proposed changes to a current checkout of the > SVN source code. I have attached the diff files showing the > changes I've made to Format.java and Formatter.java. > > Please have a look at it. I would appreciate an inclusion of > my changes to the trunk! Is there a way to commit such > changes in another way? Something like a commit request or > something like that? > > Best regards > Max Senft > > Am 21.02.2013 22:05, schrieb Max Senft: > > Hi there! > > > > I posted a question at Stackoverflow: > > http://stackoverflow.com/q/14955902/2086717 > > It affects the usage of empty element tags of the > produced XML data. > > > > The proposed answer using an own Converter is somewhat > complex and > > absolutely unnecessary for such a simple matter. PLUS > the fact complex > > class architectures cannot be done "user-friendly" by > converters since > > there seems no way to get out of the user-defined > converter back to the > > ones Simple integrates to automatically output the > class hierarchies. > > > > I looked through the source of Simple and think that it > should be VERY > > easy to enhance the Formatter and Format classes to > enable this feature. > > What is the suggested way to present an implementation > to you? Or are > > you uninterested in user implementation proposals? > > > > Best regards > > Max Senft > > > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_feb > > _______________________________________________ > > Simple-support mailing list > > Sim...@li...<mailto:Sim...@li...> > > https://lists.sourceforge.net/lists/listinfo/simple-support > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > -----Inline Attachment Follows----- > > _______________________________________________ > Simple-support mailing list > Sim...@li...<mailto:Sim...@li...> > https://lists.sourceforge.net/lists/listinfo/simple-support > |