public Iterable<String> create(java.lang.Void using) { final String[] children = internal.get().list(); if (children != null && children.length > 0) return new Iterable<String>() { public Iterator<String> iterator() { return new Iterator<String>() { int pos = -1; public boolean hasNext() { return pos + 1 < children.length; } public String next() { return children[++pos]; } public void remove() { throw new UnsupportedOperationException("Not supported."); } }; } }; else return new Iterable<String>() { public Iterator<String> iterator() { return new Iterator<String>() { public boolean hasNext() { return false; } public String next() { throw new UnsupportedOperationException("Not supported."); } public void remove() { throw new UnsupportedOperationException("Not supported."); } }; } }; }
@Override public boolean exists() { return internal.get().exists(); }
public void markDeleteOnExit() { internal.get().deleteOnExit(); }
@Override public boolean canWrite() { return internal.get().canWrite(); }
@Override public long size() { return internal.get().length(); }
public void delete() { internal.get().delete(); }
@Override public boolean canRead() { return internal.get().canRead(); }
@Override public long lastModified() { return internal.get().lastModified(); }
@Override public boolean isHidden() { return internal.get().isHidden(); }
@Override public String mimeType() { return mimeCache.get(); }
@Override public boolean isDirectory() { return internal.get().isDirectory(); }