public int getline(ByteList dst, byte terminator, long limit) throws IOException, BadDescriptorException { if (binmode) { return stream.getline(dst, terminator, limit); } ByteList intermediate = new ByteList(); int result = stream.getline(intermediate, terminator, limit); convertCRLFToLF(intermediate, dst); return result; }
public int getline(ByteList dst, byte terminator, long limit) throws IOException, BadDescriptorException { if (binmode) { return stream.getline(dst, terminator, limit); } ByteList intermediate = new ByteList(); int result = stream.getline(intermediate, terminator, limit); convertCRLFToLF(intermediate, dst); return result; }
public int getline(ByteList dst, byte terminator, long limit) throws IOException, BadDescriptorException { if (binmode) { return stream.getline(dst, terminator, limit); } ByteList intermediate = new ByteList(); int result = stream.getline(intermediate, terminator, limit); convertCRLFToLF(intermediate, dst); return result; }
public int getline(ByteList dst, byte terminator, long limit) throws IOException, BadDescriptorException { if (binmode) { return stream.getline(dst, terminator, limit); } ByteList intermediate = new ByteList(); int result = stream.getline(intermediate, terminator, limit); convertCRLFToLF(intermediate, dst); return result; }
try { runtime.getCurrentContext().getThread().beforeBlockingCall(); n = readStream.getline(buf, (byte) delim); c = buf.length() > 0 ? buf.get(buf.length() - 1) & 0xff : -1; } catch (EOFException e) {
try { runtime.getCurrentContext().getThread().beforeBlockingCall(); n = readStream.getline(buf, (byte) delim); c = buf.length() > 0 ? buf.get(buf.length() - 1) & 0xff : -1; } catch (EOFException e) {