Не вызывается нужный метод объекта fileWriter в методе public void write(String str, int off, int len) throws IOException
package com.javarush.task.task19.task1917;
import java.io.*;
public class FileConsoleWriter {
private FileWriter fileWriter;
public FileConsoleWriter(File file) throws IOException {
this.fileWriter = new FileWriter(file);
}
public FileConsoleWriter(File file, boolean appen) throws IOException {
this.fileWriter = new FileWriter(file, appen);
}
public FileConsoleWriter(FileDescriptor file) throws IOException {
this.fileWriter = new FileWriter(file);
}
public FileConsoleWriter(String file) throws IOException {
this.fileWriter = new FileWriter(file);
}
public FileConsoleWriter(String file, boolean appen) throws IOException {
this.fileWriter = new FileWriter(file, appen);
}
public static void main(String[] args) throws Exception {
}
public void write(int c) throws IOException {
fileWriter.write(c);
System.out.println(c);
}
public void write(char[] c) throws IOException {
fileWriter.write(c);
System.out.println(c);
}
public void write(String c) throws IOException {
fileWriter.write(c);
System.out.println(c);
}
public void write(char[] c, int off, int len) throws IOException {
fileWriter.write(c, off, len);
System.out.println(String.valueOf(c, off, len));
}
public void write(String str, int off, int len) throws IOException {
fileWriter.write(str, off, len);
System.out.println(str.substring(off, len));
}
public void close() throws IOException {
fileWriter.close();
}
}