| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools.makeldif; |
| | | |
| | |
| | | throw ioException; |
| | | } |
| | | |
| | | if ((entryBytes == null) || (! entryBytes.hasRemaining())) |
| | | if ((entryBytes == null || !entryBytes.hasRemaining()) |
| | | && !getNextEntry()) |
| | | { |
| | | if (! getNextEntry()) |
| | | { |
| | | closed = true; |
| | | return -1; |
| | | } |
| | | closed = true; |
| | | return -1; |
| | | } |
| | | |
| | | return (0xFF & entryBytes.get()); |
| | |
| | | throw ioException; |
| | | } |
| | | |
| | | if ((entryBytes == null) || (! entryBytes.hasRemaining())) |
| | | if ((entryBytes == null || !entryBytes.hasRemaining()) |
| | | && !getNextEntry()) |
| | | { |
| | | if (! getNextEntry()) |
| | | { |
| | | closed = true; |
| | | return -1; |
| | | } |
| | | closed = true; |
| | | return -1; |
| | | } |
| | | |
| | | int bytesRead = Math.min(len, entryBytes.remaining()); |