Read members from a MwsReader.

@param r
The reader to read from.
186197
@Override
    public void readFragmentFrom(MwsReader r) {
        status = r.read("Status", String.class);
        timestamp = r.read("Timestamp", XMLGregorianCalendar.class);
        messageId = r.read("MessageId", String.class);
        messages = r.readList("Messages", "Message", Message.class);
    }
156996
public void addPatternFromReader(Reader r) throws IOException {
		BufferedReader br = new BufferedReader(r);
		String line;
		// We dont want \n and commented line
		Pattern MY_PATTERN = Pattern.compile("^([A-z0-9_]+)([~]?)\\s+(.*)$");
		while ((line = br.readLine()) != null) {
			Matcher m = MY_PATTERN.matcher(line);
			if (m.matches()) {
			    if (m.group(2).length() > 0) {
			        // process line as simple template
			        this.addPattern(m.group(1), simpleTemplateToRegEx(m.group(3)));
			    }
			    else {
			        this.addPattern(m.group(1), m.group(3));
			    }
			}
		}
		br.close();
	}
563702
function setSensorRead(en, r) {
	r.readEn = en; if(en) {
		if(r.readTmr) clearInterval(r.readTmr);
		r.dataParser = onSensorData.bind(r);
		r.readTmr = setInterval(r.queryLoop, 80);
		r.queryLoop();
	} else {
		if(r.readTmr) clearInterval(r.readTmr);
		r.dataParser = r.readTmr = null;
	}
}
932727
public String[][] getList(final Reader r) throws IOException {
    try {
      setReader(r);
      reset();
      String[][] result = tokenCollection.getList();
      end();
      close();
      return result;
    } catch (MtasParserException e) {
      log.info(e);
      throw new IOException("can't produce list");
    }
  }
90607
private Reader getResourceReader(String resource) throws ResourceNotFoundException {
		List<Class<?>> excluded = new ArrayList<>();
		excluded.add(ILessCssResourceGenerator.class);
		return rsReaderHandler.getResource(bundle, resource, false, excluded);
	}
640449
private void initReader(Object obj) {
		if (obj instanceof WorkingDirectoryLocationAware) {
			((WorkingDirectoryLocationAware) obj).setWorkingDirectory(workingDirectory);
		}
		if (obj instanceof ServletContextAware) {
			((ServletContextAware) obj).setServletContext(servletContext);
		}

		if (obj instanceof ResourceBrowser) {
			if (obj instanceof ResourceGenerator) {
				resourceGeneratorInfoProviders.add(0, (ResourceBrowser) obj);
			} else {
				servletCtxResourceBrowser = (ResourceBrowser) obj;
			}
		}
	}
846475
public void print(final Reader r) throws MtasParserException {
    try {
      setReader(r);
      reset();
      if (tokenCollection != null) {
        tokenCollection.print();
      }
      end();
      close();
    } catch (IOException e) {
      log.error(e);
      throw new MtasParserException(e.getClass() + " : " + e.getMessage());
    }
  }
200851
public Tokenizer<Tree> getTokenizer(final Reader r) {
    return new AbstractTokenizer<Tree>() {
      TreeReader tr = trf.newTreeReader(r);
      @Override
      public Tree getNext() {
        try {
          return tr.readTree();
        }
        catch(IOException e) {
          System.err.println("Error in reading tree.");
          return null;
        }
      }
    };
  }
1027646
public List<MapRow> readTableConditional(Class<? extends TableReader> readerClass) throws IOException
   {
      List<MapRow> result;
      if (DatatypeConverter.getBoolean(m_stream))
      {
         result = readTable(readerClass);
      }
      else
      {
         result = Collections.emptyList();
      }
      return result;
   }
824287
public static String readUntilTag(Reader r) throws IOException {
    if (!r.ready()) {
      return "";
    }
    StringBuilder b = new StringBuilder();
    int c = r.read();
    while (c >= 0 && c != '<') {
      b.append((char) c);
      c = r.read();
    }
    return b.toString();
  }
103071
@Override
    public void readFragmentFrom(MwsReader r) {
        asin = r.read("ASIN", String.class);
        sellerSKU = r.read("SellerSKU", String.class);
        orderItemId = r.read("OrderItemId", String.class);
        title = r.read("Title", String.class);
        quantityOrdered = r.read("QuantityOrdered", int.class);
        quantityShipped = r.read("QuantityShipped", Integer.class);
        itemPrice = r.read("ItemPrice", Money.class);
        shippingPrice = r.read("ShippingPrice", Money.class);
        giftWrapPrice = r.read("GiftWrapPrice", Money.class);
        itemTax = r.read("ItemTax", Money.class);
        shippingTax = r.read("ShippingTax", Money.class);
        giftWrapTax = r.read("GiftWrapTax", Money.class);
        shippingDiscount = r.read("ShippingDiscount", Money.class);
        promotionDiscount = r.read("PromotionDiscount", Money.class);
        promotionIds = r.readList("PromotionIds", "PromotionId", String.class);
        codFee = r.read("CODFee", Money.class);
        codFeeDiscount = r.read("CODFeeDiscount", Money.class);
        giftMessageText = r.read("GiftMessageText", String.class);
        giftWrapLevel = r.read("GiftWrapLevel", String.class);
        invoiceData = r.read("InvoiceData", InvoiceData.class);
        conditionNote = r.read("ConditionNote", String.class);
        conditionId = r.read("ConditionId", String.class);
        conditionSubtypeId = r.read("ConditionSubtypeId", String.class);
        scheduledDeliveryStartDate = r.read("ScheduledDeliveryStartDate", String.class);
        scheduledDeliveryEndDate = r.read("ScheduledDeliveryEndDate", String.class);
    }
800541
public void readSingleRow() {
    // [START bigtable_hw_get_by_key_veneer]
    try {
      System.out.println("\nReading a single row by row key");
      Row row = dataClient.readRow(tableId, ROW_KEY_PREFIX + 0);
      System.out.println("Row: " + row.getKey().toStringUtf8());
      for (RowCell cell : row.getCells()) {
        System.out.printf(
            "Family: %s    Qualifier: %s    Value: %s%n",
            cell.getFamily(), cell.getQualifier().toStringUtf8(), cell.getValue().toStringUtf8());
      }
    } catch (NotFoundException e) {
      System.err.println("Failed to read from a non-existent table: " + e.getMessage());
    }
    // [END bigtable_hw_get_by_key_veneer]
  }
415346
@Override
    public void readFragmentFrom(MwsReader r) {
        nextToken = r.read("NextToken", String.class);
        amazonOrderId = r.read("AmazonOrderId", String.class);
        orderItems = r.readList("OrderItems", "OrderItem", OrderItem.class);
    }
1198653
public void readValue() {

        if (defValue == null) {
            value = reader.readValue(name);
        } else {
            value = reader.readValue(name, defValue);
        }

        if (valueInterceptor != null) {
            value = valueInterceptor.onValueRead(value);
        }
    }
1116825
public void set(int r, int c, double value) throws MatrixException
    {
        if ((r < 0) || (r >= nRows) || (c < 0) || (c >= nCols)) {
            throw new MatrixException(MatrixException.INVALID_INDEX);
        }

        values[r][c] = value;
    }
926430
@Override
    public void readFragmentFrom(MwsReader r) {
        listOrderItemsByNextTokenResult = r.read("ListOrderItemsByNextTokenResult", ListOrderItemsByNextTokenResult.class);
        responseMetadata = r.read("ResponseMetadata", ResponseMetadata.class);
    }
133284
@Override
    public void readExternal(PofReader reader) throws IOException {
        factory  = (Factory<List<E>>) reader.readObject(0);
        delegate = factory.create();
        reader.readCollection(1, delegate);
    }