Advertisement
Josif_tepe

Untitled

Mar 25th, 2021
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. import java.io.*;
  2.  
  3. public class CustomFilter extends FilterOutputStream {
  4.     public CustomFilter(OutputStream out) {
  5.         super(out);
  6.     }
  7.  
  8.     @Override
  9.     public void write(int b) {
  10.         if(!(b == 65 || b == 69 || b == 73 || b == 79 || b == 85)) {
  11.             try {
  12.                 super.write(b);
  13.             }
  14.             catch (IOException ex) {
  15.  
  16.             }
  17.         }
  18.     }
  19. }
  20. /*}
  21. * */
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement