-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Classes to match additional specs
- Loading branch information
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...rickApp-build/StPatrickApp-code/src/main/java/ch/heigvd/res/stpatrick/ARemoverReader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<off+len; i++){ | ||
if(cbuf[i]=='a'||cbuf[i]=='A'){ | ||
i++; | ||
} | ||
} | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void close() throws IOException { | ||
|
||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...rickApp-build/StPatrickApp-code/src/main/java/ch/heigvd/res/stpatrick/ARemoverWriter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package ch.heigvd.res.stpatrick; | ||
|
||
import java.io.IOException; | ||
import java.io.Writer; | ||
|
||
/** | ||
* Created by ALi on 20.03.2017. | ||
*/ | ||
public class ARemoverWriter extends Writer { | ||
@Override | ||
public void write(char[] cbuf, int off, int len) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void flush() throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void close() throws IOException { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters