public void setLength(int length) {
        if (length < -1) {
            throw new IllegalArgumentException("Length must be -1 or greater.");
        }
        this.length = length;
    }
Sets the length.

@param length the length to set
src/nu/validator/xml/TypedInputSource.java