Class SafeTokenReader

java.lang.Object
java.io.Reader
graphql.parser.SafeTokenReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class SafeTokenReader extends Reader
This reader will only emit a maximum number of characters from it. This is used to protect us from evil input.

If a graphql system does not have some max HTTP input limit, then this will help protect the system. This is a limit of last resort. Ideally the http input should be limited, but if its not, we have this.