text: public Field(String name, TokenStream tokenStream, IndexableFieldType type) {if (name == null) {throw new IllegalArgumentException("name must not be null");}if (tokenStream == null) {throw new NullPointerException("tokenStream must not be null");}if (type.indexOptions() == IndexOptions.NONE || !type.tokenized()) {throw new IllegalArgumentException("TokenStream fields must be indexed and tokenized");}if (type.stored()) {throw new IllegalArgumentException("TokenStream fields cannot be stored");}this.name = name;this.fieldsData = null;this.tokenStream = tokenStream;this.type = type;}