/** * Returns the maximum file length supported by the protocol in bytes. * * @return the file length that is supported. */ public long getMaximumFileLength() { OperationSetFileTransfer ftOpSet = contact.getProtocolProvider().getOperationSet(OperationSetFileTransfer.class); return ftOpSet.getMaximumFileLength(); }