[OGNL] OGNL-21 Potentially removing methods from OgnlRuntime class.

2011-09-20 Thread Daniel Pitts
Hello everyone, For https://issues.apache.org/jira/browse/OGNL-21, I'm proposing that the following methods get removed from the OgnlRuntime class. I've done a quick search in google codesearch ( http://www.google.com/codesearch) and didn't come across anything that used these (with two exceptions

Re: [io] Should "FileUtils.writeByteArrayToFile(...)" not use a BufferedOutputStream?

2011-09-25 Thread Daniel Pitts
Buffering is important if you are writing many small chunks in a row. I haven't looked at the implementation of writeByteArrayToFile, but I'm assuming it the entire byte array in one shot and then closes the stream. Buffering would actually add extra overhead, as it would copy the byte array into

Re: Telnet: Problems automating a session

2011-10-12 Thread Daniel Pitts
Try calling outputStream.flush() after each command. Thanks, Daniel. Sent from my iPhone On Oct 12, 2011, at 8:23 AM, Jason Dorsey wrote: > Hey, > > Very new to java socket programming and I am having an issue with automating > a session to issue one command and then exit. When I use the co

Re: [JCS] ConcurrentModificationException

2012-01-25 Thread Daniel Pitts
On 1/25/12 4:26 AM, Thomas Muller wrote: Hi, I don't know JCS at all, but the exception you get is the result of one thread updating a collection (in your case a HashMap) whilst another thread is iterating it. Actually, that exception can (and does) happen in single threaded applications, al

Re: [OGNL] Mask operators

2012-03-05 Thread Daniel Pitts
Or more simply m.get("a-b") :-) OGNL is a great tool. But don't use it where it doesn't help. Thanks, Daniel. Sent from my iPhone On Mar 5, 2012, at 8:20 AM, Chris Pratt wrote: > Try getValue("\"a-b\""); > (*Chris*) > On Mar 5, 2012 4:54 AM, wrote: > >> Is there a way to mask operators in

Re: [io] Are FileUtils and IOUtils thread safe?

2012-09-28 Thread Daniel Pitts
On 9/28/12 8:20 PM, Yungwei Chen wrote: Hi, I would like to know if FileUtils and IOUtils are thread safe. Thanks. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.

Re: Equivalent of LinkedHashMap meetingEntries in commons primitives

2013-02-23 Thread Daniel Pitts
First off, floating points make terrible keys. Do you really need them as keys, or are you really using this as pair ? I think Trove is the library you might want, not apache commons. Sent from my iPad On Feb 23, 2013, at 4:57 PM, Osman Khalid wrote: > Hi. > > I am using a data structure us

Re: [LANG] How to escape JSON data

2013-04-09 Thread Daniel Pitts
I might suggest looking into the json.org library. On 4/9/13 7:36 AM, Maurizio Cucchiara wrote: OK, there is already an opened issue [1] [1] https://issues.apache.org/jira/browse/LANG-797 Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921

Re: [LANG] How to escape JSON data

2013-04-10 Thread Daniel Pitts
was talking about the best way, I was asking for a "common" way. On 10 April 2013 02:39, Daniel Pitts wrote: I might suggest looking into the json.org library. - To unsubscribe, e-mail: user-unsubscr...@commons.ap

Re: [LANG] How to escape JSON data

2013-04-10 Thread Daniel Pitts
Well, I'd be inclined to use the library written by the same people who maintain the spec: http://www.json.org/java/index.html On 4/10/13 11:20 AM, Gary Gregory wrote: Note that json.org is a spec, not an implementation. Gary On Wed, Apr 10, 2013 at 2:13 PM, Daniel Pitts wrote: D