All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ozacc.mail.fetch.impl.sk_jp.text.Translator Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
/*
 * @(#) $Id: Translator.java,v 1.1.2.1 2005/01/18 07:20:43 otsuka Exp $
 * $Revision: 1.1.2.1 $
 * Copyright (c) 2000 Shin Kinoshita All Rights Reserved.
 */

package com.ozacc.mail.fetch.impl.sk_jp.text;

import java.io.IOException;
import java.io.Reader;
import java.io.Writer;

/**
 * Character Translatorのインターフェイスです。
 * @version $Revision: 1.1.2.1 $ $Date: 2005/01/18 07:20:43 $
 * @author Shin
 */
public interface Translator {
    /**
     * 文字ストリームから入力した文字列を任意の変換を
     * 行いながら出力ストリームに書き出します。
     * 

* フィルタとして用いる場合はPipedInput/OutputStreamと併用しましょう。
* このメソッドの実装者はリエントラントに設計すべきでしょう。 *

*/ void translate(Reader r, Writer w) throws IOException; /** * 入力文字列に任意の変換を施した文字列を返します。 */ String translate(String src); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy