Home
last modified time | relevance | path

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

12345678910>>...50

/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 …]
/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 …]
/libcore/ojluni/annotations/hiddenapi/java/io/
DRandomAccessFile.java48 public final java.io.FileDescriptor getFD() throws java.io.IOException { in getFD()
56 public int read() throws java.io.IOException { in read()
60 private int readBytes(byte[] b, int off, int len) throws java.io.IOException { in readBytes()
64 public int read(byte[] b, int off, int len) throws java.io.IOException { in read()
68 public int read(byte[] b) throws java.io.IOException { in read()
72 public final void readFully(byte[] b) throws java.io.IOException { in readFully()
76 public final void readFully(byte[] b, int off, int len) throws java.io.IOException { in readFully()
80 public int skipBytes(int n) throws java.io.IOException { in skipBytes()
84 public void write(int b) throws java.io.IOException { in write()
88 private void writeBytes(byte[] b, int off, int len) throws java.io.IOException { in writeBytes()
[all …]
DObjectInputStream.java35 public ObjectInputStream(java.io.InputStream in) throws java.io.IOException { in ObjectInputStream()
39 protected ObjectInputStream() throws java.io.IOException, java.lang.SecurityException { in ObjectInputStream()
44 throws java.lang.ClassNotFoundException, java.io.IOException { in readObject()
49 throws java.lang.ClassNotFoundException, java.io.IOException { in readObjectOverride()
54 throws java.lang.ClassNotFoundException, java.io.IOException { in readUnshared()
58 public void defaultReadObject() throws java.lang.ClassNotFoundException, java.io.IOException { in defaultReadObject()
63 throws java.lang.ClassNotFoundException, java.io.IOException { in readFields()
73 throws java.lang.ClassNotFoundException, java.io.IOException { in resolveClass()
78 throws java.lang.ClassNotFoundException, java.io.IOException { in resolveProxyClass()
82 protected java.lang.Object resolveObject(java.lang.Object obj) throws java.io.IOException { in resolveObject()
[all …]
DObjectOutputStream.java35 public ObjectOutputStream(java.io.OutputStream out) throws java.io.IOException { in ObjectOutputStream()
39 protected ObjectOutputStream() throws java.io.IOException, java.lang.SecurityException { in ObjectOutputStream()
43 public void useProtocolVersion(int version) throws java.io.IOException { in useProtocolVersion()
47 public final void writeObject(java.lang.Object obj) throws java.io.IOException { in writeObject()
51 protected void writeObjectOverride(java.lang.Object obj) throws java.io.IOException { in writeObjectOverride()
55 public void writeUnshared(java.lang.Object obj) throws java.io.IOException { in writeUnshared()
59 public void defaultWriteObject() throws java.io.IOException { in defaultWriteObject()
63 public java.io.ObjectOutputStream.PutField putFields() throws java.io.IOException { in putFields()
67 public void writeFields() throws java.io.IOException { in writeFields()
71 public void reset() throws java.io.IOException { in reset()
[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 …]
DNativeDispatcher.java39 throws IOException; in read()
50 throws IOException in pread()
52 throw new IOException("Operation Unsupported"); in pread()
56 throws IOException; in readv()
59 throws IOException; in write()
62 throws IOException in pwrite()
64 throw new IOException("Operation Unsupported"); in pwrite()
68 throws IOException; in writev()
70 abstract void close(FileDescriptor fd) throws IOException; in close()
76 void preClose(FileDescriptor fd) throws IOException { in preClose()
/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 …]
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DDerInputStream.java33 public DerInputStream(byte[] data) throws java.io.IOException { in DerInputStream()
37 public DerInputStream(byte[] data, int offset, int len) throws java.io.IOException { in DerInputStream()
42 throws java.io.IOException { in DerInputStream()
51 throws java.io.IOException { in init()
57 throws java.io.IOException { in subStream()
66 public int getInteger() throws java.io.IOException { in getInteger()
71 public java.math.BigInteger getBigInteger() throws java.io.IOException { in getBigInteger()
75 public java.math.BigInteger getPositiveBigInteger() throws java.io.IOException { in getPositiveBigInteger()
79 public int getEnumerated() throws java.io.IOException { in getEnumerated()
84 public byte[] getBitString() throws java.io.IOException { in getBitString()
[all …]
DDerOutputStream.java44 public void write(byte tag, byte[] buf) throws java.io.IOException { in write()
49 public void write(byte tag, sun.security.util.DerOutputStream out) throws java.io.IOException { in write()
54 throws java.io.IOException { in writeImplicit()
59 public void putDerValue(sun.security.util.DerValue val) throws java.io.IOException { in putDerValue()
64 public void putBoolean(boolean val) throws java.io.IOException { in putBoolean()
68 public void putEnumerated(int i) throws java.io.IOException { in putEnumerated()
73 public void putInteger(java.math.BigInteger i) throws java.io.IOException { in putInteger()
77 public void putInteger(java.lang.Integer i) throws java.io.IOException { in putInteger()
82 public void putInteger(int i) throws java.io.IOException { in putInteger()
86 private void putIntegerContents(int i) throws java.io.IOException { in putIntegerContents()
[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 …]
/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/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 …]
/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 …]
/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/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 …]

12345678910>>...50