KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > axis > components > encoding > XMLEncoder


1 /*
2
3  * Copyright 2001-2004 The Apache Software Foundation.
4
5  *
6
7  * Licensed under the Apache License, Version 2.0 (the "License");
8
9  * you may not use this file except in compliance with the License.
10
11  * You may obtain a copy of the License at
12
13  *
14
15  * http://www.apache.org/licenses/LICENSE-2.0
16
17  *
18
19  * Unless required by applicable law or agreed to in writing, software
20
21  * distributed under the License is distributed on an "AS IS" BASIS,
22
23  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
25  * See the License for the specific language governing permissions and
26
27  * limitations under the License.
28
29  */

30
31 package org.jboss.axis.components.encoding;
32
33
34 /**
35  * Interface for XMLEncoders
36  */

37
38 public interface XMLEncoder
39 {
40
41    /**
42     * gets the encoding supported by this encoder
43     *
44     * @return
45     */

46
47    public String JavaDoc getEncoding();
48
49
50    /**
51     * encode a given string
52     *
53     * @param xmlString string to be encoded
54     * @return encoded string
55     */

56
57    String JavaDoc encode(String JavaDoc xmlString);
58
59 }
60
61
Popular Tags