You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Mario Ivankovits (JIRA)" <ji...@apache.org> on 2007/05/14 20:47:16 UTC

[jira] Resolved: (VFS-151) Allow files to return a custom FileContentInfo

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

Mario Ivankovits resolved VFS-151.
----------------------------------

    Resolution: Won't Fix

The FileContentInfo is not meant to be in the responsibility of the FileObject. Like the "file" command in unix the factory should try to determine the best FileContentInfo depending on the real FileContent by looking up the first few bytes and visiting a magic file.

Though, if the FileObject would like to have its own FileContentInfo it could override AbstractFileObject.getFileContentInfoFactory

> Allow files to return a custom FileContentInfo
> ----------------------------------------------
>
>                 Key: VFS-151
>                 URL: https://issues.apache.org/jira/browse/VFS-151
>             Project: Commons VFS
>          Issue Type: Improvement
>    Affects Versions: 1.1
>            Reporter: Adam Heath
>            Priority: Minor
>         Attachments: feature_FileContentInfo-subclass-overriding.patch
>
>
> See attached patch.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org