com.strobel.assembler.CodePrinter Maven / Gradle / Ivy
/*
* CodePrinter.java
*
* Copyright (c) 2013 Mike Strobel
*
* This source code is based on Mono.Cecil from Jb Evain, Copyright (c) Jb Evain;
* and ILSpy/ICSharpCode from SharpDevelop, Copyright (c) AlphaSierraPapa.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0.
* A copy of the license can be found in the License.html file at the root of this distribution.
* By using this source code in any fashion, you are agreeing to be bound by the terms of the
* Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
*/
package com.strobel.assembler;
import java.io.*;
import java.util.Locale;
/**
* @author Mike Strobel
*/
public class CodePrinter extends PrintWriter {
public CodePrinter(final Writer out) {
super(out, true);
}
public CodePrinter(final Writer out, final boolean autoFlush) {
super(out, autoFlush);
}
public CodePrinter(final OutputStream out) {
super(out);
}
public CodePrinter(final OutputStream out, final boolean autoFlush) {
super(out, autoFlush);
}
public CodePrinter(final String fileName) throws FileNotFoundException {
super(fileName);
}
public CodePrinter(final String fileName, final String csn) throws FileNotFoundException, UnsupportedEncodingException {
super(fileName, csn);
}
public CodePrinter(final File file) throws FileNotFoundException {
super(file);
}
public CodePrinter(final File file, final String csn) throws FileNotFoundException, UnsupportedEncodingException {
super(file, csn);
}
@Override
public CodePrinter printf(final String format, final Object... args) {
return (CodePrinter) super.printf(format, args);
}
@Override
public CodePrinter printf(final Locale l, final String format, final Object... args) {
return (CodePrinter) super.printf(l, format, args);
}
@Override
public CodePrinter format(final String format, final Object... args) {
return (CodePrinter) super.format(format, args);
}
@Override
public CodePrinter format(final Locale l, final String format, final Object... args) {
return (CodePrinter) super.format(l, format, args);
}
public void increaseIndent() {}
public void decreaseIndent() {}
}