| | |
| | | |
| | | import static org.opends.messages.JebMessages.*; |
| | | |
| | | import com.forgerock.opendj.util.StaticUtils; |
| | | import static org.forgerock.util.Utils.closeSilently; |
| | | import com.sleepycat.je.*; |
| | | |
| | | import org.opends.server.types.*; |
| | |
| | | compressedEntryBuffer.copyTo(decompressor); |
| | | } |
| | | finally { |
| | | StaticUtils.closeSilently(decompressor); |
| | | closeSilently(decompressor); |
| | | } |
| | | |
| | | // Since we are used the cached buffers (ByteStringBuilders), |
| | |
| | | entryBuffer.copyTo(compressor); |
| | | } |
| | | finally { |
| | | StaticUtils.closeSilently(compressor); |
| | | closeSilently(compressor); |
| | | } |
| | | |
| | | // Compression needed and successful. |