Size (Document - Java™) Read-only. The size of a document in bytes, which includes the size of any file attachments to the document. Defined in Document Data type int Syntax public int getSize() throws NotesException Example