パッケージ jp.co.antenna.ptl

クラス PtlParamInput

java.lang.Object
jp.co.antenna.ptl.PtlParamInput
すべての実装されたインタフェース:
AutoCloseable

public class PtlParamInput extends Object implements AutoCloseable
ファイルやストリームの入力指定に使うパラメータクラスです。

パス(ファイル)名を指定して、ストリームを指定しない場合、パス(ファイル)名を使って、ストリームをオープンします。
ストリームを指定した場合、パス(ファイル)名はエラーメッセージの表示などに使われる情報として扱われ、 パス(ファイル)名でストリームをオープンすることはありません。

  • コンストラクタの詳細

    • PtlParamInput

      public PtlParamInput() throws PtlException
      コンストラクタ
      例外:
      PtlException - 例外
    • PtlParamInput

      public PtlParamInput(String path) throws PtlException
      コンストラクタ
      パラメータ:
      path - パス。
      例外:
      PtlException - 例外
    • PtlParamInput

      public PtlParamInput(String path, InputStream inStream) throws PtlException
      コンストラクタ
      パラメータ:
      path - パス。
      inStream - ストリーム。
      例外:
      PtlException - 例外
    • PtlParamInput

      public PtlParamInput(PtlParamInput obj) throws PtlException
      コピーコンストラクタ
      alias copy
      パラメータ:
      obj - コピー元オブジェクト。
      例外:
      PtlException - 例外
  • メソッドの詳細

    • close

      public void close()
      終了処理。

      このオブジェクトが抱えているネイティブ側にあるリソースなどを廃棄して終了処理を行ないます。
      このオブジェクトを使い終わったら必ず呼ばなければなりません。

      定義:
      close インタフェース内 AutoCloseable