public class CmnFile extends File
File
の拡張機能です。
現在のところcopyTo(java.io.File)
のみ実装されています。pathSeparator, pathSeparatorChar, separator, separatorChar
コンストラクタと説明 |
---|
CmnFile(File parent,
String child)
抽象パス名および子パス名文字列から新しい File のインスタンスを生成します。
|
CmnFile(String file)
指定されたパス名文字列を抽象パス名に変換して、
新しい File のインスタンスを生成します。
|
CmnFile(String parent,
String child)
親パス名文字列および子パス名文字列から
新しい File のインスタンスを生成します。
|
CmnFile(URI uri)
指定された file: URI を抽象パス名に変換して、
新しい File のインスタンスを生成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
copyTo(File dest)
この抽象パス名が示すファイルを指定されたパスにコピーします。
|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public CmnFile(String file)
file
- パス名文字列public CmnFile(File parent, String child)
parent
- 親抽象パス名child
- 子パス名文字列public CmnFile(String parent, String child)
parent
- 親パス名文字列child
- 子パス名文字列public CmnFile(URI uri)
uri
- 階層型の絶対 URI。
形式は、"file"、パス、権限、クエリー、フラグメント。
パスは必ず指定する。
権限、クエリー、およびフラグメントは定義しないCopyright © 2021 S.D.S Co.,Ltd.. All rights reserved.