Kagetaka

net.hizlab.kagetaka.ant
クラス Encoding

java.lang.Object
  拡張org.apache.tools.ant.ProjectComponent
      拡張org.apache.tools.ant.Task
          拡張org.apache.tools.ant.taskdefs.MatchingTask
              拡張net.hizlab.kagetaka.ant.Encoding
すべての実装インタフェース:
SelectorContainer

public class Encoding
extends MatchingTask

ファイルのエンコーディングを変更するクラスです。

バージョン:
$Revision: 1.2 $

フィールドの概要
 
クラス org.apache.tools.ant.taskdefs.MatchingTask から継承したフィールド
fileset, useDefaultExcludes
 
クラス org.apache.tools.ant.Task から継承したフィールド
description, location, target, taskName, taskType, wrapper
 
クラス org.apache.tools.ant.ProjectComponent から継承したフィールド
project
 
コンストラクタの概要
Encoding()
          唯一のコンストラクタです。
 
メソッドの概要
 Mapper createMapper()
          FileNameMapper の定義 (ネストした mapper で利用)。
 void execute()
          変換を開始します。
 void setDest(File destDir)
          変換したファイルを保存するディレクトリを設定します。
 void setDestEncoding(String encoding)
          出力ファイルのエンコーディングを設定します。
 void setEncoding(String encoding)
          ファイルのエンコーディングを設定します。
 void setExt(String ext)
          変換したあとのファイル名の拡張子を設定します。
 void setSrc(File srcDir)
          変換するためのファイルが入っているディレクトリを設定します。
 
クラス org.apache.tools.ant.taskdefs.MatchingTask から継承したメソッド
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
クラス org.apache.tools.ant.Task から継承したメソッド
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
クラス org.apache.tools.ant.ProjectComponent から継承したメソッド
getProject
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Encoding

public Encoding()
唯一のコンストラクタです。

メソッドの詳細

createMapper

public Mapper createMapper()
                    throws BuildException
FileNameMapper の定義 (ネストした mapper で利用)。

戻り値:
マッパー
例外:
BuildException - ビルド時の例外

execute

public void execute()
             throws BuildException
変換を開始します。

例外:
BuildException - ビルド時の例外

setDest

public void setDest(File destDir)
変換したファイルを保存するディレクトリを設定します。

パラメータ:
destDir - 出力ファイルを保存するディレクトリ

setDestEncoding

public void setDestEncoding(String encoding)
出力ファイルのエンコーディングを設定します。

パラメータ:
encoding - エンコーディング

setEncoding

public void setEncoding(String encoding)
ファイルのエンコーディングを設定します。

パラメータ:
encoding - エンコーディング

setExt

public void setExt(String ext)
変換したあとのファイル名の拡張子を設定します。

パラメータ:
ext - 変換した後のファイル名の拡張子

setSrc

public void setSrc(File srcDir)
変換するためのファイルが入っているディレクトリを設定します。

パラメータ:
srcDir - 入力ファイルを探すディレクトリ

Kagetaka

Copyright (c) 2002-2003 The Kagetaka Project 'September 12, 2003'