Searched defs:output (Results 1 - 25 of 26) sorted by relevance

12

/libcore/luni/src/main/java/java/io/
H A DExternalizable.java39 * Writes the receiver to the ObjectOutput <code>output</code>.
41 * @param output
44 * if an error occurs attempting to write to {@code output}.
46 public void writeExternal(ObjectOutput output) throws IOException; argument
H A DEmulatedFieldsForDumping.java188 * @param output
196 public void write(ObjectOutput output) throws IOException { argument
197 if (!output.equals(oos)) {
204 output.writeInt(fieldValue != null ? ((Integer) fieldValue).intValue() : 0);
206 output.writeByte(fieldValue != null ? ((Byte) fieldValue).byteValue() : 0);
208 output.writeChar(fieldValue != null ? ((Character) fieldValue).charValue() : 0);
210 output.writeShort(fieldValue != null ? ((Short) fieldValue).shortValue() : 0);
212 output.writeBoolean(fieldValue != null ? ((Boolean) fieldValue).booleanValue() : false);
214 output.writeLong(fieldValue != null ? ((Long) fieldValue).longValue() : 0);
216 output
[all...]
H A DObjectOutputStream.java57 private DataOutputStream output; field in class:ObjectOutputStream
257 * {@code output}.
259 * @param output
266 public ObjectOutputStream(OutputStream output) throws IOException { argument
267 this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output
268 : new DataOutputStream(output);
277 primitiveTypes = this.output;
284 * Writes optional information for class {@code aClass} to the output
[all...]
/libcore/luni/src/main/java/javax/crypto/
H A DExemptionMechanismSpi.java50 * into the {@code output} buffer at offset {@code outputOffset}.
52 * @param output
53 * the output buffer for the result key blob.
55 * the offset in the output buffer to start.
56 * @return the number of bytes written to the {@code output} buffer.
62 protected abstract int engineGenExemptionBlob(byte[] output, argument
67 * Returns the size in bytes for the output buffer needed to hold the output
73 * @return the size in bytes for the output buffer.
H A DExemptionMechanism.java205 * Returns the size in bytes for the output buffer needed to hold the output
211 * @return the size in bytes for the output buffer.
315 * into the {@code output} buffer.
317 * @param output
318 * the output buffer for the result key blob.
319 * @return the number of bytes written to the {@code output} buffer.
328 public final int genExemptionBlob(byte[] output) argument
331 return genExemptionBlob(output, 0);
336 * into the {@code output} buffe
351 genExemptionBlob(byte[] output, int outputOffset) argument
[all...]
H A DMac.java333 * output} buffer at offset {@code outOffset}.
339 * @param output
340 * the output buffer
342 * the offset in the output buffer
344 * if the specified output buffer is either too small for the
345 * digest to be stored, the specified output buffer is {@code
347 * of the output buffer.
351 public final void doFinal(byte[] output, int outOffset) argument
356 if (output == null) {
357 throw new ShortBufferException("output
[all...]
H A DCipherSpi.java125 * The actual output length of the next call to {@code update} or {@code
288 * transformed bytes are stored in the {@code output} buffer.
290 * If the size of the {@code output} buffer is too small to hold the result,
293 * output buffer.
301 * @param output
302 * the output buffer.
304 * the offset in the output buffer.
305 * @return the number of bytes placed in output.
307 * if the size of the {@code output} buffer is too small.
310 int inputLen, byte[] output, in
309 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
331 engineUpdate(ByteBuffer input, ByteBuffer output) argument
419 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
451 engineDoFinal(ByteBuffer input, ByteBuffer output) argument
[all...]
H A DCipher.java389 * Returns the length in bytes an output buffer needs to be when this cipher
394 * @return the output buffer length for the input length.
910 * transformed bytes are stored in the {@code output} buffer.
912 * If the size of the {@code output} buffer is too small to hold the result,
915 * output buffer.
923 * @param output
924 * the output buffer.
925 * @return the number of bytes placed in output.
927 * if the size of the {@code output} buffer is too small.
932 * if the input is {@code null}, the output i
936 update(byte[] input, int inputOffset, int inputLen, byte[] output) argument
971 update(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
1017 update(ByteBuffer input, ByteBuffer output) argument
1076 doFinal(byte[] output, int outputOffset) argument
1179 doFinal(byte[] input, int inputOffset, int inputLen, byte[] output) argument
1217 doFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
1255 doFinal(ByteBuffer input, ByteBuffer output) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DExemptionMechanismSpiTest.java56 protected int engineGenExemptionBlob(byte[] output, int outputOffset) throws ShortBufferException, ExemptionMechanismException { argument
57 return super.engineGenExemptionBlob(output, outputOffset);
97 assertEquals("Incorrect output size", 10, emSpi.engineGetOutputSize(100));
H A DExemptionMechanismTest.java152 * Test for <code>genExemptionBlob((byte[] output, int outputOffset)</code> method
222 protected int engineGenExemptionBlob(byte[] output, int outputOffset) argument
224 if (output.length - outputOffset <
225 super.engineGenExemptionBlob(output, outputOffset)) {
228 if (output[outputOffset + 3] == 33) {
231 return super.engineGenExemptionBlob(output, outputOffset);
H A DCipherSpiTest.java56 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, argument
59 return super.engineDoFinal(input, inputOffset, inputLen, output, outputOffset);
116 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument
118 return super.engineUpdate(input, inputOffset, inputLen, output, outputOffset);
210 * throws ShortBufferException is there is no space in output to hold result
262 * throws ShortBufferException is there is no space in output to hold result
365 byte[] output, int outputOffset) throws ShortBufferException {
368 if ((output.length - outputOffset) < t) {
372 output[i + outputOffset] = initV[i];
390 byte[] output, in
364 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
389 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
405 engineUpdate(ByteBuffer input, ByteBuffer output) argument
409 engineDoFinal(ByteBuffer input, ByteBuffer output) argument
[all...]
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLEnginePair.java120 ByteBuffer output,
124 // make the other side's output into our input
153 if (output.remaining() != output.capacity()) {
156 SSLEngineResult wrapResult = engine.wrap(EMPTY_BYTE_BUFFER, output);
169 // shift consumed input, restore to output mode
119 handshakeCompleted(SSLEngine engine, ByteBuffer output, ByteBuffer input, ByteBuffer scratch) argument
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyCipher.java105 byte[] output, int outputOffset) throws ShortBufferException {
117 byte[] output, int outputOffset) throws ShortBufferException,
104 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
116 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
H A DMyExemptionMechanismSpi.java55 protected int engineGenExemptionBlob(byte[] output, int outputOffset) argument
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsetDecoderICU.java30 * data[INPUT_OFFSET] = on input contains the start of input and on output the number of input bytes consumed
31 * data[OUTPUT_OFFSET] = on input contains the start of output and on output the number of output chars written
40 private char[] output= null; field in class:CharsetDecoderICU
94 output = null;
112 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true);
138 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, false);
169 output = out.array();
178 output
[all...]
H A DCharsetDecoder.java29 * {@link java.nio.ByteBuffer ByteBuffer} and the output character sequence is a
38 * output buffer must be flushed between invocations;</li>
43 * output.</li>
48 * bytes have run out, the output buffer has been filled or some error has
51 * further action, which includes filling the input buffer, flushing the output
187 CharBuffer output = CharBuffer.allocate(length);
190 result = decode(in, output, false);
195 output = allocateMore(output);
198 result = decode(in, output, tru
232 allocateMore(CharBuffer output) argument
[all...]
H A DCharsetEncoder.java29 * output byte sequence is a {@link java.nio.ByteBuffer ByteBuffer}.
38 * The input buffer must be filled and the output buffer must be flushed between invocations.
41 * input buffer has been exhausted, the output buffer has been filled, or an
44 * the output buffer, or recovering from an error and try again, accordingly.
48 * <li>Invoke {@link #flush(ByteBuffer)} to flush remaining output.</li>
280 ByteBuffer output = ByteBuffer.allocate(length);
283 result = encode(in, output, false);
287 output = allocateMore(output);
292 result = encode(in, output, tru
330 allocateMore(ByteBuffer output) argument
[all...]
H A DCharsetEncoderICU.java45 * data[INPUT_OFFSET] = on input contains the start of input and on output the number of input chars consumed
46 * data[OUTPUT_OFFSET] = on input contains the start of output and on output the number of output bytes written
55 private byte[] output = null; field in class:CharsetEncoderICU
122 output = null;
140 int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true);
167 int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, false);
206 output = out.array();
215 output
[all...]
/libcore/luni/src/main/java/libcore/icu/
H A DNativeConverter.java19 char[] output, int outEnd, int[] data, boolean flush);
22 byte[] output, int outEnd, int[] data, boolean flush);
18 decode(long converterHandle, byte[] input, int inEnd, char[] output, int outEnd, int[] data, boolean flush) argument
21 encode(long converterHandle, char[] input, int inEnd, byte[] output, int outEnd, int[] data, boolean flush) argument
/libcore/luni/src/main/java/org/apache/harmony/crypto/internal/
H A DNullCipherSpi.java107 byte[] output, int outputOffset) throws ShortBufferException {
111 System.arraycopy(input, inputOffset, output, outputOffset, inputLen);
116 public int engineUpdate(ByteBuffer input, ByteBuffer output) argument
120 } else if (output == null) {
121 throw new NullPointerException("output == null");
125 output.put(input);
127 throw new ShortBufferException("output buffer too small");
143 byte[] output, int outputOffset) throws ShortBufferException,
145 int result = engineUpdate(input, inputOffset, inputLen, output,
151 public int engineDoFinal(ByteBuffer input, ByteBuffer output) argument
106 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
142 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
[all...]
/libcore/luni/src/main/java/java/util/logging/
H A DFileHandler.java53 * <li>java.util.logging.FileHandler.count specifies how many output files to
66 * output files. See below for details. Defaults to "%h/java%u.log".</li>
70 * be replaced to generate output files:
110 // the count of files which the output cycle through
116 // whether the FileHandler should open a existing file for output in append
120 // the pattern for output file name
126 // output stream, which can measure the output file length
127 private MeasureOutputStream output; field in class:FileHandler
129 // used output fil
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DOpenSSLCipherRSA.java230 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument
259 byte[] output = new byte[buffer.length];
263 resultSize = NativeCrypto.RSA_private_encrypt(tmpBuf.length, tmpBuf, output,
266 resultSize = NativeCrypto.RSA_public_encrypt(tmpBuf.length, tmpBuf, output,
272 resultSize = NativeCrypto.RSA_private_decrypt(tmpBuf.length, tmpBuf, output,
275 resultSize = NativeCrypto.RSA_public_decrypt(tmpBuf.length, tmpBuf, output,
284 if (!encrypting && resultSize != output.length) {
285 output = Arrays.copyOf(output, resultSize);
289 return output;
293 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
[all...]
H A DSSLSocketImpl.java74 protected OutputStream output; field in class:SSLSocketImpl
196 output = super.getOutputStream();
206 output.close();
553 output.write(alertProtocol.wrap());
647 output.write(alertProtocol.wrap());
683 output.write(recordProtocol.wrap(ContentType.APPLICATION_DATA,
687 output.write(recordProtocol.wrap(
694 output.write(
735 output.write(handshakeProtocol.wrap());
777 output
[all...]
H A DNativeCrypto.java195 public static native void RAND_bytes(byte[] output); argument
/libcore/luni/src/test/java/libcore/java/io/
H A DOldObjectOutputStreamTest.java83 public BasicObjectOutputStream(OutputStream output) throws IOException { argument
84 super(output);

Completed in 420 milliseconds

12