public void reset() { if (input == null) return; try { input.close(); } catch (IOException ignored) { } input = null; }