public synchronized void mark(int readlimit) { try { this.markpos = position(); } catch (IOException e) { // Set markpos to -1. Will cause exception reset. this.markpos = -1; } }
public synchronized void mark(int readlimit) { try { this.markpos = position(); } catch (IOException e) { // Set markpos to -1. Will cause exception reset. this.markpos = -1; } }
public synchronized void mark(int readlimit) { try { this.markpos = position(); } catch (IOException e) { // Set markpos to -1. Will cause exception reset. this.markpos = -1; } }
public synchronized void reset() throws IOException { if (this.markpos == -1) { throw new IOException("Mark has not been set."); } position(this.markpos); }
public int available() throws IOException { long amount = this.raf.length() - this.position(); return (amount >= Integer.MAX_VALUE)? Integer.MAX_VALUE: (int)amount; }
public synchronized void reset() throws IOException { if (this.markpos == -1) { throw new IOException("Mark has not been set."); } position(this.markpos); }
public synchronized void reset() throws IOException { if (this.markpos == -1) { throw new IOException("Mark has not been set."); } position(this.markpos); }
public int available() throws IOException { long amount = this.raf.length() - this.position(); return (amount >= Integer.MAX_VALUE)? Integer.MAX_VALUE: (int)amount; }
public int available() throws IOException { long amount = this.raf.length() - this.position(); return (amount >= Integer.MAX_VALUE)? Integer.MAX_VALUE: (int)amount; }