Re: Handle Byte Array
"Lars Kühne" <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
On 5/26/07, Dominik Karall <[email protected]> wrote: > 2007/5/23, Lars Kühne <[email protected]>: > > On 5/23/07, Dominik Karall wrote: > > > Does checkstyle provide an interface for reading from a byte array > > > instead of handling java File for checking? > > > > No, but this is an open feature request (#737698). Note that you could > > wrap your byte[] inside a ByteArrayInputStream and use the suggested > > API. > > > > Thanks for your answer! Which API do you mean? I couldn't find the one > which should handle ByteArrayInputStream. If you look at the text of the feature request [1], you'll see that Simon Harris suggests a stream based API. This is what I meant. The API is not specified down to the code level, but the most simple approach would be to pass a Set of InputStreams to the Checker instead of passing a set of Files like we do now. As I said in my earlier mail, that is a simple solution but it has its drawbacks. Cheers, Lars [1] http://sourceforge.net/tracker/index.php?func=detail&aid=737698&group_id=29721&atid=397081 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/