pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Brown (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (PIVOT-591) add a readObject(File) method to WTKXSerializer
Date Sun, 08 Aug 2010 12:32:27 GMT

     [ https://issues.apache.org/jira/browse/PIVOT-591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Greg Brown resolved PIVOT-591.
------------------------------

    Resolution: Won't Fix

In general it is recommended that you load your WTKX files via resource URL rather than file
path, to avoid a hard dependency on a particular file system structure. Also, as demonstrated
in your example, reading WTKX from the file system is a one-line call, so adding it to the
platform wouldn't add much value anyway.



> add a readObject(File) method to WTKXSerializer
> -----------------------------------------------
>
>                 Key: PIVOT-591
>                 URL: https://issues.apache.org/jira/browse/PIVOT-591
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>    Affects Versions: 1.5
>         Environment: mac os x 10.6
>            Reporter: A.J.
>            Priority: Trivial
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> When loadind a WTKX file using WTKXSerializer readObject(InputStream) method, the serializer
fails to load included WTKX because its location is not set.
> Adding a method readObject(File file) such as this one should fix this issue : 
>     public Object readObject(File file) throws IOException, SerializationException {
>     	return readObject(file.toURI().toURL());
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message