Gamebuster

FileConsumer

Oct 20th, 2021 (edited)
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.16 KB | None | 0 0
  1.     public FileConsumer(String sessionId, FileConsumerConfig config, FilteringConsumer.Filter ... filters) {
  2.         block5: {
  3.             super(filters);
  4.             //Irrelevant proprietary code removed
  5.             try {
  6.                 //Irrelevant proprietary code removed
  7.                 this.channel = FileChannel.open((Path)this.logPath, (OpenOption[])new OpenOption[]{StandardOpenOption.APPEND, StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.SYNC});
  8.                 //Irrelevant proprietary code removed
  9.                 this.reportChannel = FileChannel.open((Path)this.reportPath, (OpenOption[])new OpenOption[]{StandardOpenOption.APPEND, StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.SYNC});
  10.             }
  11.             catch (Throwable throwable) {
  12.                 throwable.printStackTrace();
  13.                 if (!config.throwExceptionOnFail) break block5; //maybe the 'block5' label is causing an issue?
  14.                 throw new RuntimeException(throwable);
  15.             }
  16.         }
  17.         if (this.channel != null) {
  18.             this.ioThread = new IoThread();
  19.             this.ioThread.start();
  20.         }
  21.     }
Add Comment
Please, Sign In to add comment