| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS. |
| | | * Portions Copyright 2015-2016 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.tools.makeldif; |
| | | |
| | |
| | | */ |
| | | private ByteArrayOutputStream entryOutputStream; |
| | | |
| | | /** |
| | | * The byte array that will hold the LDIF representation of the next entry to |
| | | * be read. |
| | | */ |
| | | /** The byte array that will hold the LDIF representation of the next entry to be read. */ |
| | | private ByteBuffer entryBytes; |
| | | |
| | | /** The IOException that should be thrown the next time a read is requested. */ |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Closes this input stream so that no more data may be read from it. |
| | | */ |
| | | /** Closes this input stream so that no more data may be read from it. */ |
| | | @Override |
| | | public void close() |
| | | { |
| | | closed = true; |
| | |
| | | * @throws IOException If a problem has occurred while generating data for |
| | | * use by this input stream. |
| | | */ |
| | | @Override |
| | | public int read() |
| | | throws IOException |
| | | { |
| | |
| | | * @throws IOException If a problem has occurred while generating data for |
| | | * use by this input stream. |
| | | */ |
| | | @Override |
| | | public int read(byte[] b, int off, int len) |
| | | throws IOException |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean writeEntry(TemplateEntry entry) |
| | | throws IOException, MakeLDIFException |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void closeEntryWriter() |
| | | { |
| | | allGenerated = true; |