1
package org.herac.tuxguitar.gui.tools.browser.ftp;
3
import java.io.InputStream;
5
import org.herac.tuxguitar.gui.tools.browser.TGBrowserException;
6
import org.herac.tuxguitar.gui.tools.browser.base.TGBrowserElement;
8
public class TGBrowserElementImpl extends TGBrowserElement{
10
private TGBrowserImpl browser;
14
public TGBrowserElementImpl(TGBrowserImpl browser,String name,String info,String path) {
16
this.browser = browser;
21
public boolean isFolder(){
22
return (this.info != null && this.info.length() > 0 && this.info.charAt(0) == 'd');
25
public InputStream getInputStream()throws TGBrowserException {
26
return this.browser.getInputStream(this.path,this);