/forgerock/opendj2-hg/src/server/org/opends/server/protocols/asn1/ |
H A D | ASN1.java | 156 * Gets an ASN.1 reader whose source is the provided input stream 159 * @param stream 160 * The input stream to use. 163 public static ASN1Reader getReader(InputStream stream) argument 165 return getReader(stream, 0); 171 * Gets an ASN.1 reader whose source is the provided input stream 174 * @param stream 175 * The input stream to use. 181 public static ASN1Reader getReader(InputStream stream, int maxElementSize) argument 183 return new ASN1InputStreamReader(stream, maxElementSiz 274 getWriter(OutputStream stream) argument 293 getWriter(OutputStream stream, int maxInternalBufferSize) argument [all...] |
H A D | ByteSequenceOutputStream.java | 45 * Creates a new byte string builder output stream. 95 * provided output stream. 97 * @param stream 98 * The output stream. 101 * IOException} is thrown if the output stream is closed. 103 void writeTo(OutputStream stream) throws IOException argument 105 buffer.copyTo(stream); 109 * Resets this output stream such that the underlying byte string builder is
|
/forgerock/opendj2-hg/src/server/org/opends/server/protocols/ldap/ |
H A D | AddRequestProtocolOp.java | 151 * Writes this protocol op to an ASN.1 output stream. 153 * @param stream The ASN.1 output stream to write to. 154 * @throws IOException If a problem occurs while writing to the stream. 157 public void write(ASN1Writer stream) throws IOException argument 159 stream.writeStartSequence(OP_TYPE_ADD_REQUEST); 160 stream.writeOctetString(dn); 163 stream.writeStartSequence(); 166 attr.write(stream); 168 stream [all...] |
H A D | CompareRequestProtocolOp.java | 140 * Writes this protocol op to an ASN.1 output stream. 142 * @param stream The ASN.1 output stream to write to. 143 * @throws IOException If a problem occurs while writing to the stream. 145 public void write(ASN1Writer stream) throws IOException argument 147 stream.writeStartSequence(OP_TYPE_COMPARE_REQUEST); 148 stream.writeOctetString(dn); 150 stream.writeStartSequence(); 151 stream.writeOctetString(attributeType); 152 stream [all...] |
H A D | ExtendedRequestProtocolOp.java | 137 * Writes this protocol op to an ASN.1 output stream. 139 * @param stream The ASN.1 output stream to write to. 140 * @throws IOException If a problem occurs while writing to the stream. 142 public void write(ASN1Writer stream) throws IOException argument 144 stream.writeStartSequence(OP_TYPE_EXTENDED_REQUEST); 145 stream.writeOctetString(TYPE_EXTENDED_REQUEST_OID, oid); 149 stream.writeOctetString(TYPE_EXTENDED_REQUEST_VALUE, value); 152 stream.writeEndSequence();
|
H A D | IntermediateResponseProtocolOp.java | 138 * Writes this protocol op to an ASN.1 output stream. 140 * @param stream The ASN.1 output stream to write to. 141 * @throws IOException If a problem occurs while writing to the stream. 143 public void write(ASN1Writer stream) throws IOException argument 145 stream.writeStartSequence(OP_TYPE_INTERMEDIATE_RESPONSE); 149 stream.writeOctetString(TYPE_INTERMEDIATE_RESPONSE_OID, oid); 154 stream.writeOctetString(TYPE_INTERMEDIATE_RESPONSE_VALUE, value); 157 stream.writeEndSequence();
|
H A D | ModifyRequestProtocolOp.java | 152 * Writes this protocol op to an ASN.1 output stream. 154 * @param stream The ASN.1 output stream to write to. 155 * @throws IOException If a problem occurs while writing to the stream. 158 public void write(ASN1Writer stream) throws IOException argument 160 stream.writeStartSequence(OP_TYPE_MODIFY_REQUEST); 161 stream.writeOctetString(dn); 163 stream.writeStartSequence(); 166 mod.write(stream); 168 stream [all...] |
H A D | SearchResultReferenceProtocolOp.java | 137 * Writes this protocol op to an ASN.1 output stream. 139 * @param stream The ASN.1 output stream to write to. 140 * @throws IOException If a problem occurs while writing to the stream. 142 public void write(ASN1Writer stream) throws IOException argument 144 stream.writeStartSequence(OP_TYPE_SEARCH_RESULT_REFERENCE); 147 stream.writeOctetString(url); 149 stream.writeEndSequence();
|
/forgerock/opendj2-hg/src/server/org/opends/server/replication/server/changelog/file/ |
H A D | LogWriter.java | 50 /** The stream to write data in the file, capable of counting bytes written. */ 51 private final MeteredStream stream; field in class:LogWriter 70 this.stream = new MeteredStream(fos, file.length()); 93 stream.write(b); 100 stream.write(b); 107 stream.write(b, off, len); 111 * Writes the provided byte string to the underlying output stream of this writer. 117 * thrown if the output stream has been closed. 121 bs.copyTo(stream); 131 return stream [all...] |
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/ |
H A D | AddRequestProtocolOp.java | 147 * Writes this protocol op to an ASN.1 output stream. 149 * @param stream The ASN.1 output stream to write to. 150 * @throws IOException If a problem occurs while writing to the stream. 153 public void write(ASN1Writer stream) throws IOException argument 155 stream.writeStartSequence(OP_TYPE_ADD_REQUEST); 156 stream.writeOctetString(dn); 159 stream.writeStartSequence(); 162 attr.write(stream); 164 stream [all...] |
H A D | CompareRequestProtocolOp.java | 137 * Writes this protocol op to an ASN.1 output stream. 139 * @param stream The ASN.1 output stream to write to. 140 * @throws IOException If a problem occurs while writing to the stream. 142 public void write(ASN1Writer stream) throws IOException argument 144 stream.writeStartSequence(OP_TYPE_COMPARE_REQUEST); 145 stream.writeOctetString(dn); 147 stream.writeStartSequence(); 148 stream.writeOctetString(attributeType); 149 stream [all...] |
H A D | ExtendedRequestProtocolOp.java | 134 * Writes this protocol op to an ASN.1 output stream. 136 * @param stream The ASN.1 output stream to write to. 137 * @throws IOException If a problem occurs while writing to the stream. 139 public void write(ASN1Writer stream) throws IOException argument 141 stream.writeStartSequence(OP_TYPE_EXTENDED_REQUEST); 142 stream.writeOctetString(TYPE_EXTENDED_REQUEST_OID, oid); 146 stream.writeOctetString(TYPE_EXTENDED_REQUEST_VALUE, value); 149 stream.writeEndSequence();
|
H A D | IntermediateResponseProtocolOp.java | 135 * Writes this protocol op to an ASN.1 output stream. 137 * @param stream The ASN.1 output stream to write to. 138 * @throws IOException If a problem occurs while writing to the stream. 140 public void write(ASN1Writer stream) throws IOException argument 142 stream.writeStartSequence(OP_TYPE_INTERMEDIATE_RESPONSE); 146 stream.writeOctetString(TYPE_INTERMEDIATE_RESPONSE_OID, oid); 151 stream.writeOctetString(TYPE_INTERMEDIATE_RESPONSE_VALUE, value); 154 stream.writeEndSequence();
|
H A D | ModifyRequestProtocolOp.java | 148 * Writes this protocol op to an ASN.1 output stream. 150 * @param stream The ASN.1 output stream to write to. 151 * @throws IOException If a problem occurs while writing to the stream. 154 public void write(ASN1Writer stream) throws IOException argument 156 stream.writeStartSequence(OP_TYPE_MODIFY_REQUEST); 157 stream.writeOctetString(dn); 159 stream.writeStartSequence(); 162 mod.write(stream); 164 stream [all...] |
H A D | SearchResultReferenceProtocolOp.java | 133 * Writes this protocol op to an ASN.1 output stream. 135 * @param stream The ASN.1 output stream to write to. 136 * @throws IOException If a problem occurs while writing to the stream. 138 public void write(ASN1Writer stream) throws IOException argument 140 stream.writeStartSequence(OP_TYPE_SEARCH_RESULT_REFERENCE); 143 stream.writeOctetString(url); 145 stream.writeEndSequence();
|
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/replication/server/changelog/file/ |
H A D | LogWriter.java | 50 /** The stream to write data in the file, capable of counting bytes written. */ 51 private final MeteredStream stream; field in class:LogWriter 70 this.stream = new MeteredStream(fos, file.length()); 93 stream.write(b); 100 stream.write(b); 107 stream.write(b, off, len); 111 * Writes the provided byte string to the underlying output stream of this writer. 117 * thrown if the output stream has been closed. 121 bs.copyTo(stream); 131 return stream [all...] |
/forgerock/opendj-b2.6/src/server/org/opends/server/protocols/ldap/ |
H A D | AddResponseProtocolOp.java | 198 * Writes this protocol op to an ASN.1 output stream. 200 * @param stream The ASN.1 output stream to write to. 201 * @throws IOException If a problem occurs while writing to the stream. 203 public void write(ASN1Writer stream) throws IOException argument 205 stream.writeStartSequence(OP_TYPE_ADD_RESPONSE); 206 stream.writeEnumerated(resultCode); 210 stream.writeOctetString((String)null); 214 stream.writeOctetString(matchedDN.toString()); 219 stream [all...] |
H A D | BindRequestProtocolOp.java | 218 * Writes this protocol op to an ASN.1 output stream. 220 * @param stream The ASN.1 output stream to write to. 221 * @throws IOException If a problem occurs while writing to the stream. 223 public void write(ASN1Writer stream) throws IOException argument 225 stream.writeStartSequence(OP_TYPE_BIND_REQUEST); 226 stream.writeInteger(protocolVersion); 227 stream.writeOctetString(dn); 231 stream.writeOctetString(TYPE_AUTHENTICATION_SIMPLE, simplePassword); 235 stream [all...] |
H A D | BindResponseProtocolOp.java | 242 * Writes this protocol op to an ASN.1 output stream. 244 * @param stream The ASN.1 output stream to write to. 245 * @throws IOException If a problem occurs while writing to the stream. 247 public void write(ASN1Writer stream) throws IOException argument 249 stream.writeStartSequence(OP_TYPE_BIND_RESPONSE); 250 stream.writeEnumerated(resultCode); 254 stream.writeOctetString((String)null); 258 stream.writeOctetString(matchedDN.toString()); 263 stream [all...] |
H A D | CompareResponseProtocolOp.java | 199 * Writes this protocol op to an ASN.1 output stream. 201 * @param stream The ASN.1 output stream to write to. 202 * @throws IOException If a problem occurs while writing to the stream. 204 public void write(ASN1Writer stream) throws IOException argument 206 stream.writeStartSequence(OP_TYPE_COMPARE_RESPONSE); 207 stream.writeEnumerated(resultCode); 211 stream.writeOctetString((String)null); 215 stream.writeOctetString(matchedDN.toString()); 220 stream [all...] |
H A D | DeleteResponseProtocolOp.java | 202 * Writes this protocol op to an ASN.1 output stream. 204 * @param stream The ASN.1 output stream to write to. 205 * @throws IOException If a problem occurs while writing to the stream. 207 public void write(ASN1Writer stream) throws IOException argument 209 stream.writeStartSequence(OP_TYPE_DELETE_RESPONSE); 210 stream.writeEnumerated(resultCode); 214 stream.writeOctetString((String)null); 218 stream.writeOctetString(matchedDN.toString()); 223 stream [all...] |
H A D | ExtendedResponseProtocolOp.java | 262 * Writes this protocol op to an ASN.1 output stream. 264 * @param stream The ASN.1 output stream to write to. 265 * @throws IOException If a problem occurs while writing to the stream. 267 public void write(ASN1Writer stream) throws IOException argument 269 stream.writeStartSequence(OP_TYPE_EXTENDED_RESPONSE); 270 stream.writeEnumerated(resultCode); 274 stream.writeOctetString((String)null); 278 stream.writeOctetString(matchedDN.toString()); 283 stream [all...] |
H A D | ModifyDNRequestProtocolOp.java | 179 * Writes this protocol op to an ASN.1 output stream. 181 * @param stream The ASN.1 output stream to write to. 182 * @throws IOException If a problem occurs while writing to the stream. 184 public void write(ASN1Writer stream) throws IOException argument 186 stream.writeStartSequence(OP_TYPE_MODIFY_DN_REQUEST); 187 stream.writeOctetString(entryDN); 188 stream.writeOctetString(newRDN); 189 stream.writeBoolean(deleteOldRDN); 193 stream [all...] |
H A D | ModifyDNResponseProtocolOp.java | 198 * Writes this protocol op to an ASN.1 output stream. 200 * @param stream The ASN.1 output stream to write to. 201 * @throws IOException If a problem occurs while writing to the stream. 203 public void write(ASN1Writer stream) throws IOException argument 205 stream.writeStartSequence(OP_TYPE_MODIFY_DN_RESPONSE); 206 stream.writeEnumerated(resultCode); 210 stream.writeOctetString((String)null); 214 stream.writeOctetString(matchedDN.toString()); 219 stream [all...] |
H A D | ModifyResponseProtocolOp.java | 196 * Writes this protocol op to an ASN.1 output stream. 198 * @param stream The ASN.1 output stream to write to. 199 * @throws IOException If a problem occurs while writing to the stream. 201 public void write(ASN1Writer stream) throws IOException argument 203 stream.writeStartSequence(OP_TYPE_MODIFY_RESPONSE); 204 stream.writeEnumerated(resultCode); 208 stream.writeOctetString((String)null); 212 stream.writeOctetString(matchedDN.toString()); 217 stream [all...] |