Returns the size of this source in bytes, if the size can be easily determined without actually opening the data stream. The default implementation returns Optional#absent. Some sources, such as a file, may return a non-absent value. Note that in such cases, it is possible that th
()
| 166 | * @since 19.0 |
| 167 | */ |
| 168 | @Beta |
| 169 | public Optional<Long> sizeIfKnown() { |
| 170 | return Optional.absent(); |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * Returns the size of this source in bytes, even if doing so requires opening and traversing an |
no test coverage detected