| DummyWriter.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * The contents of this file are subject to the terms of the Liferay Enterprise
5 * Subscription License ("License"). You may not use this file except in
6 * compliance with the License. You can obtain a copy of the License by
7 * contacting Liferay, Inc. See the License for the specific language governing
8 * permissions and limitations under the License, including but not limited to
9 * distribution rights of the Software.
10 *
11 *
12 *
13 */
14
15 package com.liferay.portal.kernel.io;
16
17 import java.io.Writer;
18
19 /**
20 * <a href="DummyWriter.java.html"><b><i>View Source</i></b></a>
21 *
22 * @author Shuyang Zhou
23 */
24 public class DummyWriter extends Writer {
25
26 public Writer append(char c) {
27 return this;
28 }
29
30 public Writer append(CharSequence charSequence) {
31 return this;
32 }
33
34 public Writer append(CharSequence charSequence, int start, int end) {
35 return this;
36 }
37
38 public void close() {
39 }
40
41 public void flush() {
42 }
43
44 public void write(char[] charArray) {
45 }
46
47 public void write(char[] charArray, int offset, int length) {
48 }
49
50 public void write(int c) {
51 }
52
53 public void write(String string) {
54 }
55
56 public void write(String string, int offset, int length) {
57 }
58
59 }