Home
last modified time | relevance | path

Searched refs:outStream (Results 1 – 14 of 14) sorted by relevance

/libcore/ojluni/src/main/java/sun/misc/
DBASE64Encoder.java82 protected void encodeAtom(OutputStream outStream, byte data[], int offset, int len) in encodeAtom() argument
90 outStream.write(pem_array[(a >>> 2) & 0x3F]); in encodeAtom()
91 outStream.write(pem_array[((a << 4) & 0x30) + ((b >>> 4) & 0xf)]); in encodeAtom()
92 outStream.write('='); in encodeAtom()
93 outStream.write('='); in encodeAtom()
98 outStream.write(pem_array[(a >>> 2) & 0x3F]); in encodeAtom()
99 outStream.write(pem_array[((a << 4) & 0x30) + ((b >>> 4) & 0xf)]); in encodeAtom()
100 outStream.write(pem_array[((b << 2) & 0x3c) + ((c >>> 6) & 0x3)]); in encodeAtom()
101 outStream.write('='); in encodeAtom()
106 outStream.write(pem_array[(a >>> 2) & 0x3F]); in encodeAtom()
[all …]
DCharacterEncoder.java141 public void encode(InputStream inStream, OutputStream outStream) in encode() argument
147 encodeBufferPrefix(outStream); in encode()
154 encodeLinePrefix(outStream, numBytes); in encode()
158 encodeAtom(outStream, tmpbuffer, j, bytesPerAtom()); in encode()
160 encodeAtom(outStream, tmpbuffer, j, (numBytes)- j); in encode()
166 encodeLineSuffix(outStream); in encode()
169 encodeBufferSuffix(outStream); in encode()
187 ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in encode() local
191 encode(inStream, outStream); in encode()
193 retVal = outStream.toString("8859_1"); in encode()
[all …]
DBASE64Decoder.java106 protected void decodeAtom(PushbackInputStream inStream, OutputStream outStream, int rem) in decodeAtom() argument
149 outStream.write( (byte)(((a << 2) & 0xfc) | ((b >>> 4) & 3)) ); in decodeAtom()
152 outStream.write( (byte) (((a << 2) & 0xfc) | ((b >>> 4) & 3)) ); in decodeAtom()
153 outStream.write( (byte) (((b << 4) & 0xf0) | ((c >>> 2) & 0xf)) ); in decodeAtom()
156 outStream.write( (byte) (((a << 2) & 0xfc) | ((b >>> 4) & 3)) ); in decodeAtom()
157 outStream.write( (byte) (((b << 4) & 0xf0) | ((c >>> 2) & 0xf)) ); in decodeAtom()
158 outStream.write( (byte) (((c << 6) & 0xc0) | (d & 0x3f)) ); in decodeAtom()
DCharacterDecoder.java189 ByteArrayOutputStream outStream;
193 outStream = new ByteArrayOutputStream();
194 decodeBuffer(inStream, outStream); in decodeBuffer() argument
195 return (outStream.toByteArray());
202 ByteArrayOutputStream outStream = new ByteArrayOutputStream();
203 decodeBuffer(in, outStream); in decodeBuffer() argument
204 return (outStream.toByteArray());
/libcore/ojluni/src/main/java/sun/security/util/
DHexDumpEncoder.java149 public void encode(InputStream inStream, OutputStream outStream) in encode() argument
156 encodeBufferPrefix(outStream); in encode()
163 encodeLinePrefix(outStream, numBytes); in encode()
167 encodeAtom(outStream, tmpbuffer, j, bytesPerAtom()); in encode()
169 encodeAtom(outStream, tmpbuffer, j, (numBytes)- j); in encode()
175 encodeLineSuffix(outStream); in encode()
185 ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in encode() local
189 encode(inStream, outStream); in encode()
191 retVal = outStream.toString("ISO-8859-1"); in encode()
262 public void encodeBuffer(InputStream inStream, OutputStream outStream) in encodeBuffer() argument
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DConsoleTest.java40 private Console createConsole(InputStream inStream, OutputStream outStream) throws Exception { in createConsole() argument
44 return constructor.newInstance(inStream, outStream); in createConsole()
61 ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in testReadPassword() local
62 Console console = createConsole(inStream, outStream); in testReadPassword()
80 ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in testReadPasswordWithPrompt() local
81 Console console = createConsole(inStream, outStream); in testReadPasswordWithPrompt()
90 String prompt = new String(((ByteArrayOutputStream) outStream).toByteArray()); in testReadPasswordWithPrompt()
103 ByteArrayOutputStream outStream = new ByteArrayOutputStream(); in testCharset() local
104 Console console = createConsole(inStream, outStream); in testCharset()
/libcore/ojluni/src/test/java/util/zip/
DCloseInflaterDeflaterTest.java53 private static OutputStream outStream = new OutputStream() { field in CloseInflaterDeflaterTest
100 { new JarOutputStream(outStream)}, in testZipAndJar()
101 { new ZipOutputStream(outStream)}, in testZipAndJar()
122 GZIPOutputStream gzip = new GZIPOutputStream(outStream); in testGZip()
144 DeflaterOutputStream def = new DeflaterOutputStream(outStream); in testDeflaterOutputStream()
182 InflaterOutputStream inf = new InflaterOutputStream(outStream); in testInflaterOutputStream()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DCharacterEncoder.java67 public void encode(java.io.InputStream inStream, java.io.OutputStream outStream) in encode() argument
94 public void encodeBuffer(java.io.InputStream inStream, java.io.OutputStream outStream) in encodeBuffer() argument
DBASE64Encoder.java44 protected void encodeAtom(java.io.OutputStream outStream, byte[] data, int offset, int len) in encodeAtom() argument
DBASE64Decoder.java45 java.io.PushbackInputStream inStream, java.io.OutputStream outStream, int rem) in decodeAtom() argument
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipFileTest.java42 FileOutputStream outStream = new FileOutputStream(file); in testZipFile() local
43 createCompressedZip(outStream); in testZipFile()
/libcore/ojluni/src/main/java/java/io/
DConsole.java634 private Console(InputStream inStream, OutputStream outStream) { in Console() argument
639 outStream, in Console()
/libcore/ojluni/annotations/hiddenapi/java/io/
DConsole.java38 private Console(java.io.InputStream inStream, java.io.OutputStream outStream) { in Console() argument
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java1870 try (FileOutputStream outStream = new FileOutputStream(out)) {
1871 FileDescriptor outFd = outStream.getFD();