code: @Override
  	public String readString() {
  		int limit = buf.limit();
  		int len = 0;
  		switch (currentDataType) {
  		case AMF.TYPE_LONG_STRING:
  			log.trace("Long string type");
  			len = buf.getInt();
  			if (len > limit) {
  				len = limit;
  			}
  			break;
  		case AMF.TYPE_STRING:
  			log.trace("Std string type");
  			len = buf.getUnsignedShort();
  			break;
  		default:
  			log.debug("Unknown AMF type: {}", currentDataType);
  		}
  		log.debug("Length: {} limit: {}", len, limit);
  		byte[] str = new byte[len];
  		buf.get(str);
  		String string = bufferToString(str);
  		return string;
  	}
docs: Reads a string
  
  @return String