Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DEA52200D06 for ; Mon, 25 Sep 2017 17:10:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DCCA01609C4; Mon, 25 Sep 2017 15:10:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2ED771609BB for ; Mon, 25 Sep 2017 17:10:06 +0200 (CEST) Received: (qmail 11281 invoked by uid 500); 25 Sep 2017 15:10:05 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 11259 invoked by uid 99); 25 Sep 2017 15:10:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2017 15:10:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 44E711A05DB for ; Mon, 25 Sep 2017 15:10:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.401 X-Spam-Level: X-Spam-Status: No, score=-0.401 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id s7fKKkIW0b_S for ; Mon, 25 Sep 2017 15:10:02 +0000 (UTC) Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9E3F25FBC6 for ; Mon, 25 Sep 2017 15:10:01 +0000 (UTC) Received: by mail-oi0-f48.google.com with SMTP id i128so7342702oih.6 for ; Mon, 25 Sep 2017 08:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=+NYX93Mjf0uO28xq1BWLFxNPAsEncdI3IcfjOqVXEQ4=; b=EwMtkJvYMn1bcwmY2lRUEPEUeHCK57brweShoMzZh80U1oRWHYXvLIjcRQu+itnZMi eO/VM97p8Lk3436o2xvOzejIDifYrzogWywp6EOs0J6msG0VKhbiA+OuELkytV7xrIQa EcNdQuU9Ae8EorwDfr5wvWIQ8oc95JLgw5bjxkKnwMDrdFaUmZ7L0hxlT65RGvGnqfxC Way4JQrwU91f6CobdlohnIIyplsSrZW9/axpA+qGFDnKgCGaqiI0VL+YAjyNEu9hkj0K F5s/VABjGJc9agOPtfbWqn337sWpcsCBjiPX86DnZ3uj2s+seesam9dT3OYjFcIaRfZ6 N3KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=+NYX93Mjf0uO28xq1BWLFxNPAsEncdI3IcfjOqVXEQ4=; b=iHpF9A6FMFCurM4r1V7pgb+15Zdr1bsOproBGNZwO9ZB+fJ1i3DQdmURvYN79YVwhO wNF11e+Tr6tN4uSV1occ5dUypFLuixb/5Kc7IdYyFYOZjlcOkRB/3l+wPsNXBpcsKbu1 FUWI98+2YHsPnZe450Tc2l7humohmC7LEWUQZvq4j0Vy1+USaCLQzhPzVfnuIkqvJ3dr wCGl1dovoUjeX4J4n2v/cwaUusFffXNnSffjcWlfl75EVxI0W8AA30xBNmlKoaFRsVBJ bxHJJRZUog5yp5YW4vR0xO80EQRasg3zHWbTPWuVydVpuakUCggHPTofzatM4e4sYHR4 d2Ug== X-Gm-Message-State: AHPjjUg4f9YFlgWNHQL51XiCmt0V5Im/KVX5wLI+VlHLmd74XORH1UMw UBBqhFGKWaM8Z4izzvmFUlMjdXqZoyU94q8Mlif9ifo= X-Google-Smtp-Source: AOwi7QA+7fdP6D+J+GEUjO+fLjuBA3IA7CiGJx2v58Vxvsm/NVWfSizoPe3YSu8ZG5wfis+KxbEP1xwCRx+RRJ3L16I= X-Received: by 10.157.16.124 with SMTP id o57mr454435oto.370.1506352200123; Mon, 25 Sep 2017 08:10:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.42.228 with HTTP; Mon, 25 Sep 2017 08:09:59 -0700 (PDT) In-Reply-To: <1423831484.9345521.1506349883936@mail.yahoo.com> References: <1423831484.9345521.1506349883936.ref@mail.yahoo.com> <1423831484.9345521.1506349883936@mail.yahoo.com> From: Gary Gregory Date: Mon, 25 Sep 2017 09:09:59 -0600 Message-ID: Subject: Re: [VFS] How to override a FileContent / FileContentInfo provider for an existing filesystem? To: Commons Users List , Carl Eric Codere Content-Type: multipart/alternative; boundary="001a1141f4a8cb8a8f055a04f3ff" archived-at: Mon, 25 Sep 2017 15:10:07 -0000 --001a1141f4a8cb8a8f055a04f3ff Content-Type: text/plain; charset="UTF-8" Hi Carl, WRT DataSource, this is a JDBC interface, which does not seem appropriate for a file system. Or do you mean javax.activation.DataSource. Apache Commons VFS was started a long time ago and not adapted to newer JREs in this area (obviously.) Gary On Mon, Sep 25, 2017 at 8:31 AM, Carl Eric Codere wrote: > Greetings, I am interested in using the VFS library for one > of my projects, as it has almost everything I need, but i have some > questions on it though. > My use case is as follows:* For the local file system, I use DESCRIPT.ION > files to store attributes of files and directories, so I would need to > override some methods of DefaultFileInfo() , mainly all the attribute > related functions. How can I set my own FileInfo provider? I did not find > any API in the interfaces to do this, maybe, i missed something. > * The same is true of FileContent, how can I set my own FileContentInfo > provider in FileContent ? I would probably use a feature of JDK 1.6 (the > FileTypeMap class) to override the default implementation. > > Finally an unrelated question, why you do not use the DataSource interface > in FileObject available in JDK 1.6, is it because of Android compatibility > issues? > Thanks in advance for your help,Carl > > > > > > --001a1141f4a8cb8a8f055a04f3ff--