On Tue, Jun 26, 2012 at 12:46 PM, Ralph Goers <ralph.go...@dslextreme.com>wrote:

> OK - but why not just return errors if isWritable() is false?
>

Well, isWritable() will return true most of the time in this app. But I do
not want call sites of my class to have the option to modify the file.

Gary


> Ralph
>
> On Jun 26, 2012, at 7:37 AM, Gary Gregory wrote:
>
> > I have an otherwise immutable class that also holds a FileObject that I
> do
> > not want to provide write access to. The file on disk will likely be
> > writable but I do not want to have any VFS write APIs available.
> >
> > Gary
> >
> > On Tue, Jun 26, 2012 at 9:27 AM, Ralph Goers <rgo...@apache.org> wrote:
> >
> >> Why?
> >>
> >> Sent from my iPad
> >>
> >> On Jun 26, 2012, at 4:19 AM, Gary Gregory <garydgreg...@gmail.com>
> wrote:
> >>
> >>> Hi All:
> >>>
> >>> Any thoughts, for, against or any, on adding an ImmutableFileObject?
> >>>
> >>> Thank you,
> >>> Gary
> >>>
> >>> --
> >>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> >>> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> >>> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> >>> Blog: http://garygregory.wordpress.com
> >>> Home: http://garygregory.com/
> >>> Tweet! http://twitter.com/GaryGregory
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> >> For additional commands, e-mail: dev-h...@commons.apache.org
> >>
> >>
> >
> >
> > --
> > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> > JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> > Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to