Home
last modified time | relevance | path

Searched refs:IOException (Results 1 – 25 of 1097) sorted by relevance

12345678910>>...44

/libcore/ojluni/src/main/java/sun/security/util/
DDerInputStream.java29 import java.io.IOException;
79 public DerInputStream(byte[] data) throws IOException { in DerInputStream()
94 public DerInputStream(byte[] data, int offset, int len) throws IOException { in DerInputStream()
114 boolean allowIndefiniteLength) throws IOException { in DerInputStream()
122 boolean allowIndefiniteLength) throws IOException { in init()
124 throw new IOException("Encoding bytes too short"); in init()
129 throw new IOException("Indefinite length BER encoding found"); in init()
158 throws IOException { in subStream()
191 public int getInteger() throws IOException { in getInteger()
193 throw new IOException("DER input, Integer tag error"); in getInteger()
[all …]
DDerValue.java216 public DerValue(String value) throws IOException { in DerValue()
233 public DerValue(byte stringTag, String value) throws IOException { in DerValue()
256 throws IOException { in DerValue()
277 throw new IOException in DerValue()
310 public DerValue(byte[] buf) throws IOException { in DerValue()
323 public DerValue(byte[] buf, int offset, int len) throws IOException { in DerValue()
336 public DerValue(InputStream in) throws IOException { in DerValue()
340 private DerInputStream init(byte stringTag, String value) throws IOException { in init()
378 throws IOException { in init()
395 throw new IOException in init()
[all …]
DDerOutputStream.java30 import java.io.IOException;
77 public void write(byte tag, byte[] buf) throws IOException { in write()
92 public void write(byte tag, DerOutputStream out) throws IOException { in write()
116 throws IOException { in writeImplicit()
124 public void putDerValue(DerValue val) throws IOException { in putDerValue()
139 public void putBoolean(boolean val) throws IOException { in putBoolean()
153 public void putEnumerated(int i) throws IOException { in putEnumerated()
163 public void putInteger(BigInteger i) throws IOException { in putInteger()
174 public void putInteger(Integer i) throws IOException { in putInteger()
182 public void putInteger(int i) throws IOException { in putInteger()
[all …]
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpClient.java121 … public static FtpClient create(InetSocketAddress dest) throws FtpProtocolException, IOException { in create()
139 public static FtpClient create(String dest) throws FtpProtocolException, IOException { in create()
241 public abstract FtpClient connect(SocketAddress dest) throws FtpProtocolException, IOException; in connect()
254 …stract FtpClient connect(SocketAddress dest, int timeout) throws FtpProtocolException, IOException; in connect()
273 …ic abstract FtpClient login(String user, char[] password) throws FtpProtocolException, IOException; in login()
286 …lient login(String user, char[] password, String account) throws FtpProtocolException, IOException; in login()
298 public abstract void close() throws IOException; in close()
315 …bstract FtpClient changeDirectory(String remoteDirectory) throws FtpProtocolException, IOException; in changeDirectory()
324 public abstract FtpClient changeToParentDirectory() throws FtpProtocolException, IOException; in changeToParentDirectory()
333 public abstract String getWorkingDirectory() throws FtpProtocolException, IOException; in getWorkingDirectory()
[all …]
/libcore/ojluni/src/main/java/java/io/
DDataInput.java190 void readFully(byte b[]) throws IOException; in readFully()
236 void readFully(byte b[], int off, int len) throws IOException; in readFully()
259 int skipBytes(int n) throws IOException; in skipBytes()
274 boolean readBoolean() throws IOException; in readBoolean()
290 byte readByte() throws IOException; in readByte()
310 int readUnsignedByte() throws IOException; in readUnsignedByte()
331 short readShort() throws IOException; in readShort()
354 int readUnsignedShort() throws IOException; in readUnsignedShort()
374 char readChar() throws IOException; in readChar()
393 int readInt() throws IOException; in readInt()
[all …]
DDataOutput.java60 void write(int b) throws IOException; in write()
75 void write(byte b[]) throws IOException; in write()
97 void write(byte b[], int off, int len) throws IOException; in write()
114 void writeBoolean(boolean v) throws IOException; in writeBoolean()
131 void writeByte(int v) throws IOException; in writeByte()
151 void writeShort(int v) throws IOException; in writeShort()
172 void writeChar(int v) throws IOException; in writeChar()
193 void writeInt(int v) throws IOException; in writeInt()
219 void writeLong(long v) throws IOException; in writeLong()
238 void writeFloat(float v) throws IOException; in writeFloat()
[all …]
DPipedReader.java83 public PipedReader(PipedWriter src) throws IOException { in PipedReader()
99 public PipedReader(PipedWriter src, int pipeSize) throws IOException { in PipedReader()
162 public void connect(PipedWriter src) throws IOException { in connect()
170 synchronized void receive(int c) throws IOException { in receive()
172 throw new IOException("Pipe not connected"); in receive()
174 throw new IOException("Pipe closed"); in receive()
176 throw new IOException("Read end dead"); in receive()
182 throw new IOException("Pipe broken"); in receive()
208 synchronized void receive(char c[], int off, int len) throws IOException { in receive()
237 public synchronized int read() throws IOException { in read()
[all …]
DRandomAccessFile.java299 } catch (IOException e) { in maybeSync()
320 public final FileDescriptor getFD() throws IOException { in getFD()
324 throw new IOException(); in getFD()
369 public int read() throws IOException { in read()
382 private int readBytes(byte b[], int off, int len) throws IOException { in readBytes()
413 public int read(byte b[], int off, int len) throws IOException { in read()
436 public int read(byte b[]) throws IOException { in read()
452 public final void readFully(byte b[]) throws IOException { in readFully()
470 public final void readFully(byte b[], int off, int len) throws IOException { in readFully()
496 public int skipBytes(int n) throws IOException { in skipBytes()
[all …]
DPushbackReader.java71 private void ensureOpen() throws IOException { in ensureOpen()
73 throw new IOException("Stream closed"); in ensureOpen()
84 public int read() throws IOException { in read()
106 public int read(char cbuf[], int off, int len) throws IOException { in read()
151 public void unread(int c) throws IOException { in unread()
155 throw new IOException("Pushback buffer overflow"); in unread()
174 public void unread(char cbuf[], int off, int len) throws IOException { in unread()
178 throw new IOException("Pushback buffer overflow"); in unread()
195 public void unread(char cbuf[]) throws IOException { in unread()
204 public boolean ready() throws IOException { in ready()
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileDispatcherImpl.java31 import java.io.IOException;
50 int read(FileDescriptor fd, long address, int len) throws IOException { in read()
57 throws IOException in pread()
64 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv()
70 int write(FileDescriptor fd, long address, int len) throws IOException { in write()
77 throws IOException in pwrite()
85 throws IOException in writev()
92 int force(FileDescriptor fd, boolean metaData) throws IOException { in force()
98 int truncate(FileDescriptor fd, long size) throws IOException { in truncate()
104 long size(FileDescriptor fd) throws IOException { in size()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DIOExceptionTest.java20 import java.io.IOException;
32 throw new IOException(); in test_Constructor()
35 } catch (IOException e) { in test_Constructor()
46 throw new IOException("Some error message"); in test_ConstructorLjava_lang_String()
49 } catch (IOException e) { in test_ConstructorLjava_lang_String()
62 IOException ioException = new IOException( in test_ConstructorLString_LThrowable()
67 throw new IOException( in test_ConstructorLString_LThrowable()
69 } catch (IOException e) { in test_ConstructorLString_LThrowable()
84 IOException ioException = new IOException(cause); in test_Constructor_LThrowable()
87 ioException = new IOException((Throwable) null); in test_Constructor_LThrowable()
[all …]
DDataInputStreamTest.java25 import java.io.IOException;
43 public void test_ConstructorLjava_io_InputStream() throws IOException { in test_ConstructorLjava_io_InputStream()
56 public void test_read$B() throws IOException { in test_read$B()
69 public void test_read$BII() throws IOException { in test_read$BII()
82 public void test_readBoolean() throws IOException { in test_readBoolean()
92 public void test_readByte() throws IOException { in test_readByte()
102 public void test_readChar() throws IOException { in test_readChar()
112 public void test_readDouble() throws IOException { in test_readDouble()
123 public void test_readFloat() throws IOException { in test_readFloat()
133 public void test_readFully$B() throws IOException { in test_readFully$B()
[all …]
/libcore/ojluni/src/main/java/java/net/
DAbstractPlainSocketImpl.java29 import java.io.IOException;
111 protected synchronized void create(boolean stream) throws IOException { in create()
119 } catch (IOException ioe) { in create()
148 throws UnknownHostException, IOException in connect()
162 } catch (IOException ioe) { in connect()
176 protected void connect(InetAddress address, int port) throws IOException { in connect()
183 } catch (IOException e) { in connect()
201 throws IOException { in connect()
218 } catch (IOException ioe) { in connect()
226 private void connectToAddress(InetAddress address, int port, int timeout) throws IOException { in connectToAddress()
[all …]
DSocketImpl.java29 import java.io.IOException;
80 protected abstract void create(boolean stream) throws IOException; in create()
90 protected abstract void connect(String host, int port) throws IOException; in connect()
100 protected abstract void connect(InetAddress address, int port) throws IOException; in connect()
113 protected abstract void connect(SocketAddress address, int timeout) throws IOException; in connect()
122 protected abstract void bind(InetAddress host, int port) throws IOException; in bind()
133 protected abstract void listen(int backlog) throws IOException; in listen()
142 protected abstract void accept(SocketImpl s) throws IOException; in accept()
151 protected abstract InputStream getInputStream() throws IOException; in getInputStream()
160 protected abstract OutputStream getOutputStream() throws IOException; in getOutputStream()
[all …]
/libcore/ojluni/src/main/java/java/nio/channels/
DFileChannel.java284 throws IOException in open()
331 throws IOException in open()
348 public abstract int read(ByteBuffer dst) throws IOException; in read()
360 throws IOException; in read()
370 public final long read(ByteBuffer[] dsts) throws IOException { in read()
385 public abstract int write(ByteBuffer src) throws IOException; in write()
400 throws IOException; in write()
413 public final long write(ByteBuffer[] srcs) throws IOException { in write()
433 public abstract long position() throws IOException; in position()
461 public abstract FileChannel position(long newPosition) throws IOException; in position()
[all …]
DDatagramChannel.java28 import java.io.IOException;
148 public static DatagramChannel open() throws IOException { in open()
181 public static DatagramChannel open(ProtocolFamily family) throws IOException { in open()
216 throws IOException; in bind()
227 throws IOException; in setOption()
298 throws IOException; in connect()
319 public abstract DatagramChannel disconnect() throws IOException; in disconnect()
334 public abstract SocketAddress getRemoteAddress() throws IOException; in getRemoteAddress()
398 public abstract SocketAddress receive(ByteBuffer dst) throws IOException; in receive()
464 throws IOException; in send()
[all …]
DSocketChannel.java28 import java.io.IOException;
144 public static SocketChannel open() throws IOException { in open()
185 throws IOException in open()
239 throws IOException; in bind()
251 throws IOException; in setOption()
271 public abstract SocketChannel shutdownInput() throws IOException; in shutdownInput()
292 public abstract SocketChannel shutdownOutput() throws IOException; in shutdownOutput()
389 public abstract boolean connect(SocketAddress remote) throws IOException; in connect()
440 public abstract boolean finishConnect() throws IOException; in finishConnect()
459 public abstract SocketAddress getRemoteAddress() throws IOException; in getRemoteAddress()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldDataInputOutputStreamTest.java24 import java.io.IOException;
37 public void test_read_writeBoolean() throws IOException { in test_read_writeBoolean()
43 } catch (IOException e) { in test_read_writeBoolean()
64 } catch (IOException e) { in test_read_writeBoolean()
69 public void test_read_writeByte() throws IOException { in test_read_writeByte()
75 } catch (IOException e) { in test_read_writeByte()
96 } catch (IOException e) { in test_read_writeByte()
101 public void test_read_writeChar() throws IOException { in test_read_writeChar()
107 } catch (IOException e) { in test_read_writeChar()
128 } catch (IOException e) { in test_read_writeChar()
[all …]
DOldFilterReaderTest.java22 import java.io.IOException;
40 public void close() throws IOException { in close()
44 public void mark(int readLimit) throws IOException { in mark()
53 public int read() throws IOException { in read()
58 public int read(char[] buffer, int offset, int count) throws IOException { in read()
63 public boolean ready() throws IOException { in ready()
68 public void reset() throws IOException { in reset()
72 public long skip(long count) throws IOException { in skip()
92 public void test_close() throws IOException { in test_close()
97 public void test_markI() throws IOException { in test_markI()
[all …]
DOldObjectInputOutputStreamTest.java21 import java.io.IOException;
36 public void test_read_writeBoolean() throws IOException { in test_read_writeBoolean()
55 } catch (IOException e) { in test_read_writeBoolean()
60 public void test_read_writeByte() throws IOException { in test_read_writeByte()
79 } catch (IOException e) { in test_read_writeByte()
84 public void test_read_writeChar() throws IOException { in test_read_writeChar()
103 } catch (IOException e) { in test_read_writeChar()
108 public void test_read_writeDouble() throws IOException { in test_read_writeDouble()
127 } catch (IOException e) { in test_read_writeDouble()
132 public void test_read_writeFloat() throws IOException { in test_read_writeFloat()
[all …]
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlSerializer.java3 import java.io.IOException;
95 throws IOException, IllegalArgumentException, IllegalStateException; in setOutput()
102 throws IOException, IllegalArgumentException, IllegalStateException; in setOutput()
110 throws IOException, IllegalArgumentException, IllegalStateException; in startDocument()
118 throws IOException, IllegalArgumentException, IllegalStateException; in endDocument()
140 throws IOException, IllegalArgumentException, IllegalStateException; in setPrefix()
210 throws IOException, IllegalArgumentException, IllegalStateException; in startTag()
220 throws IOException, IllegalArgumentException, IllegalStateException; in attribute()
231 throws IOException, IllegalArgumentException, IllegalStateException; in endTag()
291 throws IOException, IllegalArgumentException, IllegalStateException; in text()
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DInhibitAnyPolicyExtension.java28 import java.io.IOException;
82 } catch (IOException ioe) {
97 private void encodeThis() throws IOException { in encodeThis()
109 public InhibitAnyPolicyExtension(int skipCerts) throws IOException { in InhibitAnyPolicyExtension()
111 throw new IOException("Invalid value for skipCerts"); in InhibitAnyPolicyExtension()
131 throws IOException { in InhibitAnyPolicyExtension()
136 throw new IOException("Criticality cannot be false for " + in InhibitAnyPolicyExtension()
143 throw new IOException("Invalid encoding of InhibitAnyPolicy: " in InhibitAnyPolicyExtension()
147 throw new IOException("Invalid encoding of InhibitAnyPolicy: " in InhibitAnyPolicyExtension()
151 throw new IOException("Invalid value for skipCerts"); in InhibitAnyPolicyExtension()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DSocketImplTest.java21 import java.io.IOException;
62 } catch (IOException e) { in test_shutdownOutput()
75 } catch (IOException e) { in test_shutdownInput()
91 protected void accept(SocketImpl newSocket) throws IOException { in accept()
94 protected int available() throws IOException { in available()
98 protected void bind(InetAddress address, int port) throws IOException { in bind()
101 protected void close() throws IOException { in close()
104 protected void connect(String host, int port) throws IOException { in connect()
108 throws IOException { in connect()
111 protected void create(boolean isStreaming) throws IOException { in create()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DMockSocketChannel.java20 import java.io.IOException;
52 public boolean connect(SocketAddress arg0) throws IOException { in connect()
57 public boolean finishConnect() throws IOException { in finishConnect()
62 public int read(ByteBuffer arg0) throws IOException { in read()
67 public long read(ByteBuffer[] arg0, int arg1, int arg2) throws IOException { in read()
72 public int write(ByteBuffer arg0) throws IOException { in write()
77 public long write(ByteBuffer[] arg0, int arg1, int arg2) throws IOException { in write()
82 protected void implCloseSelectableChannel() throws IOException { in implCloseSelectableChannel()
86 protected void implConfigureBlocking(boolean arg0) throws IOException { in implConfigureBlocking()
90 public SocketAddress getRemoteAddress() throws IOException { in getRemoteAddress()
[all …]
DMockDatagramChannel.java20 import java.io.IOException;
50 public DatagramChannel connect(SocketAddress arg0) throws IOException { in connect()
55 public DatagramChannel disconnect() throws IOException { in disconnect()
60 public SocketAddress receive(ByteBuffer arg0) throws IOException { in receive()
65 public int send(ByteBuffer arg0, SocketAddress arg1) throws IOException { in send()
70 public int read(ByteBuffer arg0) throws IOException { in read()
75 public long read(ByteBuffer[] arg0, int arg1, int arg2) throws IOException { in read()
80 public int write(ByteBuffer arg0) throws IOException { in write()
85 public long write(ByteBuffer[] arg0, int arg1, int arg2) throws IOException { in write()
90 protected void implCloseSelectableChannel() throws IOException { in implCloseSelectableChannel()
[all …]

12345678910>>...44