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
()
| 179 | */ |
| 180 | |
| 181 | @Beta |
| 182 | public Optional<Long> sizeIfKnown() { |
| 183 | return Optional.absent(); |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Returns the size of this source in bytes, even if doing so requires opening and traversing an |
no test coverage detected