🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #153874

Re: Chodzenie po katalogach i po archiwum

#153874
From: Borneq
Date: Sun, 15 Sep 2013 09:09
25 lines
1810 bytes
Użytkownik "Arivald" <NOSPAMarivald@interia.pl> napisał w wiadomości 
news:l13qjn$rjn$1@news.dialog.net.pl...
> Nie File[], zawsze zwracasz ITree[]. A czy to ITree będzie RealTree czy 
> ArchiveTree to nie ma znaczenia, to zależy od implementacji.

Zrozumiałem, główną klasą będzie opis danego pliku a nie całe archiwum
++++++++++++++++
package com.borneq.io;

import javax.swing.Icon;

public interface Item {
 Icon getIcon();
 String getName();
 boolean isDirectory();
 long length();
 String lastModified();
 String getCanonicalPath();
}
natomiast do Archve może odwoływać się przez ownera

> Zainteresuj się Apache Commons IO, moduł FilenameUtils posiada metody do 
> normalizacji ścieżek do plików. Zamieni Ci żcieżki z ".." na rzeczywiste.

 Jest w standardzie Javy?
Technical Details
Message-ID: <l13tgv$skg$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <l11oi9$6l3$1@node1.news.atman.pl> <l12gel$9lv$1@news.dialog.net.pl> <l13jje$j6j$1@node2.news.atman.pl> <l13qjn$rjn$1@news.dialog.net.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: "Borneq" <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.lang.java
Subject: Re: Chodzenie po katalogach i po archiwum
Date: Sun, 15 Sep 2013 11:09:49 +0200
Organization: ATMAN - ATM S.A.
Lines: 26
Message-ID: <l13tgv$skg$1@node2.news.atman.pl>
References: <l11oi9$6l3$1@node1.news.atman.pl> <l12gel$9lv$1@news.dialog.net.pl> <l13jje$j6j$1@node2.news.atman.pl> <l13qjn$rjn$1@news.dialog.net.pl>
NNTP-Posting-Host: 91.239.205.62
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1379236191 29328 91.239.205.62 (15 Sep 2013 09:09:51 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Sun, 15 Sep 2013 09:09:51 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit