Guest User

Untitled

a guest
Jan 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. public interface FileHandler
  2. {
  3. public void openFileHandler(String fileName);
  4. public void closeFileHandler();
  5.  
  6. public String readLine();
  7. public String [] parseLine(String line);
  8. public String [] checkLine(String line[]);
  9.  
  10. public void incrementLineCount();
  11. public void incrementLineSuccessCount();
  12. public void incrementLineErrorCount();
  13.  
  14. public int getLineCount();
  15. public int getLineSuccessCount();
  16. public int getLineErrorCount();
  17. }
  18.  
  19. interface FileHandler {
  20. public void openFileHandler(String fileName);
  21. public void closeFileHandler();
  22. }
  23.  
  24. abstract class AbstractFileHandler implements FileHandler {
  25. ...
  26. protected abstract void incrementLineCount();
  27. protected abstract void incrementLineSuccessCount();
  28. protected abstract void incrementLineErrorCount();
  29. }
  30.  
  31. class ConcreteFileHandler extends AbstractFileHandler {
  32. ...
  33. }
Add Comment
Please, Sign In to add comment