in src/main/java/com/pastdev/jsch/nio/file/AbstractSshPath.java [54:72]
public Iterator<Path> iterator() {
return new Iterator<Path>() {
int index = 0;
int count = getNameCount();
public boolean hasNext() {
return index < count;
}
public Path next() {
return getName( index++ );
}
public void remove() {
// path is immutable... dont want to allow changes
throw new UnsupportedOperationException();
}
};
}