@Override public final char readChar() throws IOException { return in.readChar(); }
public final char readChar () throws IOException { return dis.readChar(); }
public char readChar () throws IOException { return din.readChar(); }
public char readChar () throws IOException { return din.readChar(); }
public final char readChar () throws IOException { return dis.readChar(); }
@Override public final char readChar() throws IOException { return in.readChar(); }
@Override public final char readChar() throws IOException { return in.readChar(); }
@Override public char readChar() throws IOException { char result = this.dis.readChar(); this.count += 2; return result; }
/** * Reads a character (16 bit) from the source stream. * * @return the char value read from the source stream. * @throws EOFException * if the end of the input is reached before the read * request can be satisfied. * @throws IOException * if an error occurs while reading from the source stream. */ public char readChar() throws IOException { return primitiveTypes.readChar(); }
public final char readChar() throws IOException { return in.readChar(); }
/** * Read a string. * * @return the value */ public String readString() throws IOException { int len = in.readInt(); if (len == -1) { return null; } StringBuilder buff = new StringBuilder(len); for (int i = 0; i < len; i++) { buff.append(in.readChar()); } String s = buff.toString(); s = StringUtils.cache(s); return s; }
/** * Read a string. * * @return the value */ @Override public String readString() throws IOException { int len = in.readInt(); if (len == -1) { return null; } StringBuilder buff = new StringBuilder(len); for (int i = 0; i < len; i++) { buff.append(in.readChar()); } String s = buff.toString(); s = StringUtils.cache(s); return s; }
public void update() throws IOException { symbols.clear(); symbolMap.clear(); firstUnstoredIndex = 0; try (DataInputStream input = new DataInputStream(new BufferedInputStream(new FileInputStream(file)))) { while (true) { int length = input.read(); if (length == -1) { break; } length = ((length & 0xFF) << 8) | (input.read() & 0xFF); StringBuilder sb = new StringBuilder(); for (int i = 0; i < length; ++i) { sb.append(input.readChar()); } String symbol = sb.toString(); symbolMap.put(symbol, symbols.size()); symbols.add(symbol); firstUnstoredIndex = symbols.size(); } } }
case RemoteSender.KEY_TYPED: keyEvent = new KeyEvent(); keyEvent.keyChar = in.readChar(); keyEvent.type = KeyEvent.KEY_TYPED; break;
case RemoteSender.KEY_TYPED: keyEvent = new KeyEvent(); keyEvent.keyChar = in.readChar(); keyEvent.type = KeyEvent.KEY_TYPED; break;
element.fieldValue = input.readByte(); } else if (type == char.class) { element.fieldValue = input.readChar(); } else if (type == short.class) { element.fieldValue = input.readShort();
/** * Reads a Unicode character value from the bytes message stream. * * @return the next two bytes from the bytes message stream as a Unicode * character * @throws JMSException if the JMS provider fails to read the message due to * some internal error. * @throws MessageEOFException if unexpected end of bytes stream has been * reached. * @throws MessageNotReadableException if the message is in write-only mode. */ @Override public char readChar() throws JMSException { initializeReading(); try { return this.dataIn.readChar(); } catch (EOFException e) { throw JMSExceptionSupport.createMessageEOFException(e); } catch (IOException e) { throw JMSExceptionSupport.createMessageFormatException(e); } }
return parseData(din, type); else if (type == 'C') return new JsonValue(din.readChar()); else throw new GdxRuntimeException("Unrecognized data type");
return parseData(din, type); else if (type == 'C') return new JsonValue(din.readChar()); else throw new GdxRuntimeException("Unrecognized data type");
return this.dataIn.readChar();