This mapper was inspired by a user-list thread that mentioned wget's --cut-dirs option.
Modifier and Type | Field and Description |
---|---|
private int |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public String[] | mapFileName(final String
the name of the source file relative to
some given basedirectory. Might be sourceFileName)null for resources that don't provide a
name.Implements org. |
public void | |
public void | setFrom(final String
ignored. ignore)Implements org. |
public void | setTo(final String
ignored. ignore)Implements org. |
dirs | back to summary |
---|---|
private int dirs |
CutDirsMapper | back to summary |
---|---|
public CutDirsMapper() |
mapFileName | back to summary |
---|---|
public String[] mapFileName(final String sourceFileName) Implements org. Doc from org. Returns an array containing the target filename(s) for the given source file. if the given rule doesn't apply to the source file, implementation must return null. SourceFileScanner will then omit the source file in question. . |
setDirs | back to summary |
---|---|
public void setDirs(final int dirs) The number of leading directories to cut.
|
setFrom | back to summary |
---|---|
public void setFrom(final String ignore) Implements org. Empty implementation. |
setTo | back to summary |
---|---|
public void setTo(final String ignore) Implements org. Empty implementation. |