DummyWriter.java |
1 /** 2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 3 * 4 * This library is free software; you can redistribute it and/or modify it under 5 * the terms of the GNU Lesser General Public License as published by the Free 6 * Software Foundation; either version 2.1 of the License, or (at your option) 7 * any later version. 8 * 9 * This library is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 12 * details. 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 }