### XmlContainer.setPageSize |

`

###

    import com.sleepycat.dbxml.*;

    public void setPageSize(int pagesize);
        throws XmlException;

### Description: XmlContainer.setPageSize

The XmlContainer.setPageSize method sets the size of the pages used to store documents in the database. The size is specified in bytes in the range 512 bytes to 64K bytes. The system selects a page size based on the underlying file system I/O block size if one is not explicitly set by the application. The default page size has a lower limit of 512 bytes and an upper limit of 16K bytes. Documents that are larger than a single page are stored on multiple pages.

The XmlContainer.setPageSize method may only be used before the container is opened for the first time.

### Parameters

pagesize
  The page size in bytes.

### Throws

The XmlContainer.setPageSize method may fail and throw XmlException, encapsulating one of the following non-zero errors:

CONTAINER_OPEN
  The page size may only be set for new containers.

### Class

XmlContainer, XmlDocument, XmlException, XmlIndexSpecification, XmlQueryContext, XmlQueryExpression, XmlResults, XmlUpdateContext, XmlValue`

Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.