From ab0a4411d719c207616878351caa53914d63491c Mon Sep 17 00:00:00 2001 From: Ali Miladi Date: Mon, 20 Mar 2017 12:44:53 +0100 Subject: [PATCH] Added Classes to match additional specs --- .../heigvd/res/stpatrick/ARemoverReader.java | 25 +++++++++++++++++++ .../heigvd/res/stpatrick/ARemoverWriter.java | 24 ++++++++++++++++++ .../ch/heigvd/res/stpatrick/Application.java | 8 +++++- 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 StPatrickApp-build/StPatrickApp-code/src/main/java/ch/heigvd/res/stpatrick/ARemoverReader.java create mode 100644 StPatrickApp-build/StPatrickApp-code/src/main/java/ch/heigvd/res/stpatrick/ARemoverWriter.java diff --git a/StPatrickApp-build/StPatrickApp-code/src/main/java/ch/heigvd/res/stpatrick/ARemoverReader.java b/StPatrickApp-build/StPatrickApp-code/src/main/java/ch/heigvd/res/stpatrick/ARemoverReader.java new file mode 100644 index 0000000..db46e77 --- /dev/null +++ b/StPatrickApp-build/StPatrickApp-code/src/main/java/ch/heigvd/res/stpatrick/ARemoverReader.java @@ -0,0 +1,25 @@ +package ch.heigvd.res.stpatrick; + +import java.io.IOException; +import java.io.Reader; + +/** + * Created by ALi on 20.03.2017. + */ +public class ARemoverReader extends Reader { + + @Override + public int read(char[] cbuf, int off, int len) throws IOException { + for (int i = off ; i