public int ungetc(int c) { return stream.ungetc(c); }
public int ungetc(int c) { return stream.ungetc(c); }
public int ungetc(int c) { return stream.ungetc(c); }
public int ungetc(int c) { return stream.ungetc(c); }
public int fgetc() throws IOException, BadDescriptorException, EOFException { int c = stream.fgetc(); if (!binmode && c == CR) { c = stream.fgetc(); if (c != LF) { stream.ungetc(c); return CR; } } return c; }
public int fgetc() throws IOException, BadDescriptorException, EOFException { int c = stream.fgetc(); if (!binmode && c == CR) { c = stream.fgetc(); if (c != LF) { stream.ungetc(c); return CR; } } return c; }
public int fgetc() throws IOException, BadDescriptorException, EOFException { int c = stream.fgetc(); if (!binmode && c == CR) { c = stream.fgetc(); if (c != LF) { stream.ungetc(c); return CR; } } return c; }
public int fgetc() throws IOException, BadDescriptorException, EOFException { int c = stream.fgetc(); if (!binmode && c == CR) { c = stream.fgetc(); if (c != LF) { stream.ungetc(c); return CR; } } return c; }
protected boolean swallow(int term) throws IOException, BadDescriptorException { Stream readStream = openFile.getMainStreamSafe(); int c; do { readCheck(readStream); try { c = readStream.fgetc(); } catch (EOFException e) { c = -1; } if (c != term) { readStream.ungetc(c); return true; } } while (c != -1); return false; }
protected boolean swallow(int term) throws IOException, BadDescriptorException { Stream readStream = openFile.getMainStreamSafe(); int c; do { readCheck(readStream); try { c = readStream.fgetc(); } catch (EOFException e) { c = -1; } if (c != term) { readStream.ungetc(c); return true; } } while (c != -1); return false; }
public void ungetcCommon(int ch) { try { OpenFile myOpenFile = getOpenFileChecked(); myOpenFile.checkReadable(getRuntime()); myOpenFile.setReadBuffered(); if (myOpenFile.getMainStreamSafe().ungetc(ch) == -1 && ch != -1) { throw getRuntime().newIOError("ungetc failed"); } } catch (InvalidValueException ex) { throw getRuntime().newErrnoEINVALError(); } catch (BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (EOFException e) { throw getRuntime().newEOFError(); } catch (IOException e) { throw getRuntime().newIOErrorFromException(e); } }
public void ungetcCommon(int ch) { try { OpenFile myOpenFile = getOpenFileChecked(); myOpenFile.checkReadable(getRuntime()); myOpenFile.setReadBuffered(); if (myOpenFile.getMainStreamSafe().ungetc(ch) == -1 && ch != -1) { throw getRuntime().newIOError("ungetc failed"); } } catch (InvalidValueException ex) { throw getRuntime().newErrnoEINVALError(); } catch (BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (EOFException e) { throw getRuntime().newEOFError(); } catch (IOException e) { throw getRuntime().newIOErrorFromException(e); } }
myOpenFile.getMainStreamSafe().ungetc(c); return runtime.getFalse();
myOpenFile.getMainStreamSafe().ungetc(c); return runtime.getFalse();
stream.ungetc(bytes.get(i));
stream.ungetc(bytes.get(i));