Returns the size of this source in chars, if the size can be easily determined without actually opening the data stream. The default implementation returns Optional#absent. Some sources, such as a CharSequence, may return a non-absent value. Note that in such cases, it is poss
()
| 133 | */ |
| 134 | |
| 135 | @Beta |
| 136 | public Optional<Long> lengthIfKnown() { |
| 137 | return Optional.absent(); |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Returns the length of this source in chars, even if doing so requires opening and traversing an |
no test coverage detected