@see org.apache.hadoop.hdfs.tools.offlineEditsViewer.Tokenizer#read

@param t a token to read
@return token that was just read
184659
public Token read(Token t) throws IOException {
    if (t.e == EditsElement.OPCODE) {
      // read the offset first
      LongToken offsetToken = new LongToken(EditsElement.OFFSET);
      offsetToken.fromString(getNextElementsValue(EditsElement.OFFSET.name()));
      t.offset = offsetToken.value;
    }
    t.fromString(getNextElementsValue(t.getEditsElement().toString()));
    return t;
  }
353486
@Override
    <T> T read(Class<T> rootType) {
        try {
            try {
                return parseRemaining(rootType);
            } finally {
                input.close();
            }
        } catch (RuntimeException ex) {
            throw ex;
        } catch (Exception ex) {
            throw new RuntimeException(ex);
        }
    }
1214674
@Override
    public ResourceSet<Call> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
955567
@Override
    public ResourceSet<TaskQueue> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1246550
protected <T> T readReadable(Class<T> clazz) throws IOException {
      try {
         T object = Reflect.onClass(clazz).allowPrivilegedAccess().create().get();
         JsonSerializable readable = Cast.as(object);
         boolean isArray = JsonArraySerializable.class.isAssignableFrom(clazz);//(object instanceof ArrayValue);
         if (isArray && peek() == JsonTokenType.BEGIN_ARRAY) {
            beginArray();
         } else if (peek() == JsonTokenType.BEGIN_OBJECT) {
            beginObject();
         }
         readable.fromJson(this);
         if (isArray && peek() == JsonTokenType.END_ARRAY) {
            endArray();
         } else if (peek() == JsonTokenType.END_OBJECT) {
            endObject();
         }
         return object;
      } catch (ReflectionException e) {
         throw new IOException(e);
      }
   }
952321
@Override
    public ResourceSet<SigningKey> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1299212
@Override
    public ResourceSet<FieldType> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
507621
@Override
    public ResourceSet<Command> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
332071
@Override
    public synchronized T read(T dto) throws Exception {
        Cursor cursor = db.query(transformer.getTableName(), transformer.getFields(), transformer.getWhereClause(dto),null, null,null,null);
        T object = null;
        if (cursor.moveToFirst()){
            object = transformer.transform(cursor);
        }
        return object;
    }
722543
@Override
    public ResourceSet<Binding> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
445102
public <T> T read(final String s, final DataTypeDescriptor<T> descriptor) {
		try {
			return jsonFormat.read(s, descriptor);
		} catch (Exception e) {
			throw propagate(e);
		}
	}
1207791
public <T> T read (Class<T> type) throws YamlException {
		return read(type, null);
	}
849207
@Override
    public ResourceSet<Application> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1197908
private void readTillEOL(StreamTokenizer tokenizer) throws IOException {
        while (tokenizer.nextToken() != StreamTokenizer.TT_EOL) {
        }

        tokenizer.pushBack();
    }
1314185
@Override
    public int read() throws IOException {
        if (metrics != null) {
            metrics.startEvent(Field.HttpSocketReadTime);
        }
        try {
            return in.read();
        } finally {
            if (metrics != null) {
                metrics.endEvent(Field.HttpSocketReadTime);
            }
        }
    }
1157040
@Override
    public ResourceSet<AuthorizationDocument> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
1182607
@Override
    public ResourceSet<Worker> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }