public class SACFileName
extends java.io.File
This class is IMMUTABLE.
This class is a sub class of File
File.equals(Object)
and
File.hashCode()
is under the File
station.GlobalCMTID
.PartialType
.x.y.z.SACExtension
station, x, y, z: String the length of station must be 8 or shorter.
station must be 8 or less letters
コンストラクタと説明 |
---|
SACFileName(java.io.File parent,
java.lang.String child) |
SACFileName(java.nio.file.Path path) |
SACFileName(java.lang.String pathname) |
SACFileName(java.lang.String parent,
java.lang.String child) |
SACFileName(java.net.URI uri) |
修飾子とタイプ | メソッドと説明 |
---|---|
SACComponent |
getComponent() |
SACExtension |
getExtension() |
GlobalCMTID |
getGlobalCMTID() |
PartialType |
getPartialType() |
WaveformType |
getSacType() |
java.lang.String |
getStationName() |
java.lang.String |
getX() |
java.lang.String |
getY() |
java.lang.String |
getZ() |
boolean |
isConvolved() |
boolean |
isOBS() |
static boolean |
isOBS(java.lang.String fileName) |
static boolean |
isSacFileName(java.io.File file)
is an input filename sacfile or not?
|
static boolean |
isSacFileName(java.nio.file.Path path)
is an input filename sacfile or not?
|
static boolean |
isSacFileName(java.lang.String fileName)
is an input filename sacfile or not?
|
boolean |
isSYN() |
static boolean |
isSYN(java.lang.String fileName) |
SACData |
read() |
SACHeaderData |
readHeader() |
java.lang.String |
toString() |
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, toURI, toURL
public SACFileName(java.io.File parent, java.lang.String child)
parent
- File
of a parent folderchild
- name of a filepublic SACFileName(java.lang.String parent, java.lang.String child)
parent
- path of a parent folderchild
- file namepublic SACFileName(java.lang.String pathname)
pathname
- path of a filepublic SACFileName(java.net.URI uri)
uri
- of a filepublic SACFileName(java.nio.file.Path path)
path
- Path
of a filepublic static boolean isOBS(java.lang.String fileName)
public static boolean isSYN(java.lang.String fileName)
fileName
- to checkpublic static boolean isSacFileName(java.nio.file.Path path)
path
- for checkSACFileName
public static boolean isSacFileName(java.lang.String fileName)
fileName
- for check can be a path of a fileSACFileName
public static boolean isSacFileName(java.io.File file)
file
- for checkSACFileName
public java.lang.String toString()
toString
クラス内 java.io.File
public boolean isConvolved()
public SACExtension getExtension()
SACExtension
of this sacfile namepublic WaveformType getSacType()
public boolean isOBS()
public boolean isSYN()
public GlobalCMTID getGlobalCMTID()
public PartialType getPartialType()
public java.lang.String getStationName()
public SACComponent getComponent()
public java.lang.String getX()
public java.lang.String getY()
public java.lang.String getZ()
public SACHeaderData readHeader() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic SACData read() throws java.io.IOException
java.io.IOException
- if an I/O error occurs