org.asyrinx.brownie.core.io
クラス TextFile

java.lang.Object
  拡張java.io.File
      拡張org.asyrinx.brownie.core.io.TextFile
すべての実装インタフェース:
java.lang.Comparable, java.io.Serializable

public class TextFile
extends java.io.File

テキストファイルを表すクラスです。

作成者:
Akima
関連項目:
直列化された形式

フィールドの概要
 
クラス java.io.File から継承したフィールド
pathSeparator, pathSeparatorChar, separator, separatorChar
 
コンストラクタの概要
TextFile(java.io.File parent, java.lang.String child)
          Constructor for FileContent.
TextFile(java.io.File parent, java.lang.String child, java.lang.String text)
          Constructor for FileContent.
TextFile(java.lang.String pathname)
          Constructor for FileContent.
TextFile(java.lang.String pathname, java.lang.String text)
          Constructor for FileContent.
TextFile(java.lang.String parent, java.lang.String child, java.lang.String text)
          Constructor for FileContent.
 
メソッドの概要
 boolean compare(java.io.InputStream target)
           
 boolean compare(java.lang.String target)
           
 java.lang.String getText()
          Returns the text.
 void load()
           
 void load(java.io.InputStream source)
           
 void save()
           
 void save(java.io.OutputStream dest)
           
 void setText(java.lang.String text)
          Sets the text.
 
クラス java.io.File から継承したメソッド
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL
 
クラス java.lang.Object から継承したメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

TextFile

public TextFile(java.lang.String pathname)
Constructor for FileContent.

パラメータ:
pathname -

TextFile

public TextFile(java.io.File parent,
                java.lang.String child)
Constructor for FileContent.

パラメータ:
parent -
child -

TextFile

public TextFile(java.lang.String pathname,
                java.lang.String text)
Constructor for FileContent.

パラメータ:
pathname -

TextFile

public TextFile(java.lang.String parent,
                java.lang.String child,
                java.lang.String text)
Constructor for FileContent.

パラメータ:
parent -
child -

TextFile

public TextFile(java.io.File parent,
                java.lang.String child,
                java.lang.String text)
Constructor for FileContent.

パラメータ:
parent -
child -
メソッドの詳細

getText

public java.lang.String getText()
Returns the text.

戻り値:
String

setText

public void setText(java.lang.String text)
Sets the text.

パラメータ:
text - The text to set

load

public void load()
          throws java.io.FileNotFoundException,
                 java.io.IOException
例外:
java.io.FileNotFoundException
java.io.IOException

load

public void load(java.io.InputStream source)
          throws java.io.IOException
例外:
java.io.IOException

save

public void save()
          throws java.io.IOException
例外:
java.io.IOException

save

public void save(java.io.OutputStream dest)
          throws java.io.IOException
例外:
java.io.IOException

compare

public boolean compare(java.io.InputStream target)
                throws java.io.IOException
例外:
java.io.IOException

compare

public boolean compare(java.lang.String target)


Copyright © 2004 asyrinx organization. All Rights Reserved.