So that users can convert documents to and from Byte arrays.
JAVA-1753 Make calculating the size of a Document simpler