Uses of Class
java.io.IOException
-
Uses of IOException in com.squareup.okhttp
Methods in com.squareup.okhttp with parameters of type IOException Modifier and Type Method Description voidRouteDatabase. failed(Route failedRoute, IOException failure)Records a failure connecting tofailedRoute.Methods in com.squareup.okhttp that throw IOException Modifier and Type Method Description OkAuthenticator.CredentialOkAuthenticator. authenticate(Proxy proxy, URL url, List<OkAuthenticator.Challenge> challenges)Returns a credential that satisfies the authentication challenge made byurl.OkAuthenticator.CredentialOkAuthenticator. authenticateProxy(Proxy proxy, URL url, List<OkAuthenticator.Challenge> challenges)Returns a credential that satisfies the authentication challenge made byproxy.byte[]Response.Body. bytes()abstract InputStreamResponse.Body. byteStream()ReaderResponse.Body. charStream()Returns the response bytes as a UTF-8 character stream.voidConnection. close()voidHttpResponseCache. close()voidConnection. connect(int connectTimeout, int readTimeout, TunnelRequest tunnelRequest)voidHttpResponseCache. delete()Closes the cache and deletes all of its stored values.voidHttpResponseCache. flush()CacheResponseOkResponseCache. get(URI uri, String requestMethod, Map<String,List<String>> requestHeaders)voidOkResponseCache. maybeRemove(String requestMethod, URI uri)Remove any cache entries for the supplieduriif the request method invalidates.ObjectConnection. newTransport(HttpEngine httpEngine)Returns the transport appropriate for this connection.voidResponse.Receiver. onResponse(Response response)protected URLConnectionHttpHandler. openConnection(URL url)protected URLConnectionHttpHandler. openConnection(URL url, Proxy proxy)CacheRequestHttpResponseCache. put(URI uri, URLConnection urlConnection)CacheRequestOkResponseCache. put(URI uri, URLConnection urlConnection)StringResponse.Body. string()Returns the response bytes as a UTF-8 string.voidOkResponseCache. update(CacheResponse conditionalCacheHit, HttpURLConnection connection)Handles a conditional request hit by updating the stored cache response with the headers fromhttpConnection.voidConnection. updateReadTimeout(int newTimeout)abstract voidRequest.Body. writeTo(OutputStream out)Writes the content of this request toout.Constructors in com.squareup.okhttp that throw IOException Constructor Description HttpResponseCache(File directory, long maxSize) -
Uses of IOException in com.squareup.okhttp.internal
Methods in com.squareup.okhttp.internal with parameters of type IOException Modifier and Type Method Description protected abstract OutputStreamFaultRecoveringOutputStream. replacementStream(IOException e)Returns a replacement output stream to recover fromethrown by the previous stream.Methods in com.squareup.okhttp.internal that throw IOException Modifier and Type Method Description voidDiskLruCache.Editor. abort()Aborts this edit.protected voidAbstractOutputStream. checkNotClosed()voidDiskLruCache. close()Closes this cache.voidFaultRecoveringOutputStream. close()voidStrictLineReader. close()Closes the reader by closing the underlyingInputStreamand marking this reader as closed.static voidUtil. closeAll(Closeable a, Closeable b)Closesaandb.voidDiskLruCache.Editor. commit()Commits this edit so it is visible to readers.voidPlatform. connectSocket(Socket socket, InetSocketAddress address, int connectTimeout)static intUtil. copy(InputStream in, OutputStream out)Copies all of the bytes fromintoout.voidDiskLruCache. delete()Closes the cache and deletes all of its stored values.static voidUtil. deleteContents(File dir)Deletes the contents ofdir.DiskLruCache.EditorDiskLruCache. edit(String key)Returns an editor for the entry namedkey, or null if another edit is in progress.DiskLruCache.EditorDiskLruCache.Snapshot. edit()Returns an editor for this snapshot's entry, or null if either the entry has changed since this snapshot was created or if another edit is in progress.voidDiskLruCache. flush()Force buffered operations to the filesystem.voidFaultRecoveringOutputStream. flush()DiskLruCache.SnapshotDiskLruCache. get(String key)Returns a snapshot of the entry namedkey, or null if it doesn't exist is not currently readable.StringDiskLruCache.Editor. getString(int index)Returns the last committed value as a string, or null if no value has been committed.StringDiskLruCache.Snapshot. getString(int index)Returns the string value forindex.InputStreamDiskLruCache.Editor. newInputStream(int index)Returns an unbuffered input stream to read the last committed value, or null if no value has been committed.OutputStreamDiskLruCache.Editor. newOutputStream(int index)Returns a new unbuffered output stream to write the value atindex.static DiskLruCacheDiskLruCache. open(File directory, int appVersion, int valueCount, long maxSize)Opens the cache indirectory, creating a cache if none exists there.static StringUtil. readAsciiLine(InputStream in)Returns the ASCII characters up to but not including the next "\r\n", or "\n".static voidUtil. readFully(InputStream in, byte[] dst)Fills 'dst' with bytes from 'in', throwing EOFException if insufficient bytes are available.static voidUtil. readFully(InputStream in, byte[] dst, int offset, int byteCount)Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws EOFException if insufficient bytes are available.static StringUtil. readFully(Reader reader)Returns the remainder of 'reader' as a string, closing it when done.intStrictLineReader. readInt()Read anintfrom a line containing its decimal representation.StringStrictLineReader. readLine()Reads the next line.static intUtil. readSingleByte(InputStream in)Implements InputStream.read(int) in terms of InputStream.read(byte[], int, int).booleanDiskLruCache. remove(String key)Drops the entry forkeyif it exists and can be removed.protected abstract OutputStreamFaultRecoveringOutputStream. replacementStream(IOException e)Returns a replacement output stream to recover fromethrown by the previous stream.voidFaultRecoveringOutputStream. replaceStream(OutputStream replacementStream)Replaces the current output stream withreplacementStream, writing any replay bytes to it if they exist.voidDiskLruCache.Editor. set(int index, String value)Sets the value atindextovalue.static voidUtil. skipAll(InputStream in)static longUtil. skipByReading(InputStream in, long byteCount)Callin.read()repeatedly until either the stream is exhausted orbyteCountbytes have been read.voidAbstractOutputStream. write(int data)voidFaultRecoveringOutputStream. write(byte[] buffer, int offset, int count)static voidUtil. writeSingleByte(OutputStream out, int b)Implements OutputStream.write(int) in terms of OutputStream.write(byte[], int, int). -
Uses of IOException in com.squareup.okhttp.internal.http
Fields in com.squareup.okhttp.internal.http declared as IOException Modifier and Type Field Description protected IOExceptionHttpURLConnectionImpl. httpEngineFailureMethods in com.squareup.okhttp.internal.http with parameters of type IOException Modifier and Type Method Description voidRouteSelector. connectFailed(Connection connection, IOException failure)Clients should invoke this method when they encounter a connectivity failure on a connection returned by this route selector.Methods in com.squareup.okhttp.internal.http that throw IOException Modifier and Type Method Description ResponseHeadersResponseHeaders. combine(ResponseHeaders network)Combines this cached header with a network header as defined by RFC 2616, 13.5.3.protected voidHttpEngine. connect()Connect to the origin server either directly or via a proxy.voidHttpsURLConnectionImpl. connect()voidHttpURLConnectionImpl. connect()OutputStreamHttpTransport. createRequestBody()OutputStreamSpdyTransport. createRequestBody()voidHttpTransport. flushRequest()voidSpdyTransport. flushRequest()static RawHeadersRawHeaders. fromBytes(InputStream in)Parses bytes of a response header from an HTTP transport.static RawHeadersRawHeaders. fromMultimap(Map<String,List<String>> map, boolean response)Creates a new instance from the given map of fields to values.static RawHeadersRawHeaders. fromNameValueBlock(List<String> nameValueBlock)Returns headers for a name value block containing a SPDY response.CacheResponseOkResponseCacheAdapter. get(URI uri, String requestMethod, Map<String,List<String>> requestHeaders)ObjectHttpsURLConnectionImpl. getContent()ObjectHttpsURLConnectionImpl. getContent(Class[] types)InputStreamHttpsURLConnectionImpl. getInputStream()InputStreamHttpURLConnectionImpl. getInputStream()OutputStreamHttpsURLConnectionImpl. getOutputStream()OutputStreamHttpURLConnectionImpl. getOutputStream()PermissionHttpsURLConnectionImpl. getPermission()PermissionHttpURLConnectionImpl. getPermission()intHttpsURLConnectionImpl. getResponseCode()intHttpURLConnectionImpl. getResponseCode()StringHttpsURLConnectionImpl. getResponseMessage()StringHttpURLConnectionImpl. getResponseMessage()InputStreamHttpTransport. getTransferStream(CacheRequest cacheRequest)InputStreamSpdyTransport. getTransferStream(CacheRequest cacheRequest)voidOkResponseCacheAdapter. maybeRemove(String requestMethod, URI uri)ConnectionRouteSelector. next(String method)Returns the next route address to attempt.static booleanHttpAuthenticator. processAuthHeader(OkAuthenticator authenticator, int responseCode, RawHeaders responseHeaders, RawHeaders successorRequestHeaders, Proxy proxy, URL url)React to a failed authorization response by looking up new credentials.CacheRequestOkResponseCacheAdapter. put(URI uri, URLConnection urlConnection)static voidRawHeaders. readHeaders(InputStream in, RawHeaders out)Reads headers or trailers intoout.voidHttpEngine. readResponse()Flushes the remaining request header and body, parses the HTTP response headers and starts reading the HTTP response body if it exists.ResponseHeadersHttpTransport. readResponseHeaders()ResponseHeadersSpdyTransport. readResponseHeaders()voidHttpEngine. receiveHeaders(RawHeaders headers)voidHttpEngine. sendRequest()Figures out what the response source will be, and opens a socket to that source if necessary.voidRawHeaders. setStatusLine(String statusLine)Sets the response status line (like "HTTP/1.0 200 OK").voidOkResponseCacheAdapter. update(CacheResponse conditionalCacheHit, HttpURLConnection connection)voidHttpTransport. writeRequestBody(com.squareup.okhttp.internal.http.RetryableOutputStream requestBody)voidSpdyTransport. writeRequestBody(com.squareup.okhttp.internal.http.RetryableOutputStream requestBody)voidHttpTransport. writeRequestHeaders()Prepares the HTTP headers and sends them to the server.voidSpdyTransport. writeRequestHeaders()Constructors in com.squareup.okhttp.internal.http that throw IOException Constructor Description HttpEngine(OkHttpClient client, Policy policy, String method, RawHeaders requestHeaders, Connection connection, com.squareup.okhttp.internal.http.RetryableOutputStream requestBodyOut)HttpsEngine(OkHttpClient client, Policy policy, String method, RawHeaders requestHeaders, Connection connection, com.squareup.okhttp.internal.http.RetryableOutputStream requestBody) -
Uses of IOException in com.squareup.okhttp.internal.spdy
Methods in com.squareup.okhttp.internal.spdy that throw IOException Modifier and Type Method Description voidSpdyConnection. close()Closes this connection.voidSpdyStream. close(int rstStatusCode)Abnormally terminate this stream.voidSpdyConnection. flush()List<String>SpdyStream. getResponseHeaders()Returns the stream's response headers, blocking if necessary if they have not been received yet.SpdyStreamSpdyConnection. newStream(List<String> requestHeaders, boolean out, boolean in)Returns a new locally-initiated stream.voidSpdyConnection. noop()Sends a noop frame to the peer.PingSpdyConnection. ping()Sends a ping frame to the peer.voidIncomingStreamHandler. receive(SpdyStream stream)Handle a new stream from this connection's peer.voidSpdyStream. reply(List<String> responseHeaders, boolean out)Sends a reply to an incoming stream.voidSpdyConnection. shutdown(int statusCode)Degrades this connection such that new streams can neither be created locally, nor accepted from the remote peer.Constructors in com.squareup.okhttp.internal.spdy that throw IOException Constructor Description Builder(boolean client, Socket socket)Builder(String hostName, boolean client, Socket socket) -
Uses of IOException in java.io
Subclasses of IOException in java.io Modifier and Type Class Description classCharConversionExceptionThe top level class for character conversion exceptions.classEOFExceptionThrown when a program encounters the end of a file or stream during an input operation.classFileNotFoundExceptionThrown when a file specified by a program cannot be found.classInterruptedIOExceptionSignals that a blocking I/O operation has been interrupted.classInvalidClassExceptionSignals a problem during the serialization or or deserialization of an object.classInvalidObjectExceptionSignals that, during deserialization, the validation of an object has failed.classNotActiveExceptionSignals that a serialization-related method has been invoked in the wrong place.classNotSerializableExceptionSignals that an object that is not serializable has been passed into theObjectOutput.writeObject()method.classObjectStreamExceptionSignals some sort of problem during either serialization or deserialization of objects.classOptionalDataExceptionSignals that theObjectInputStreamclass encountered a primitive type (int,charetc.) instead of an object instance in the input stream.classStreamCorruptedExceptionSignals that theObjectInputStream.readObject()method could not read an object due to missing information (for example, a cyclic reference that doesn't match a previous instance, or a missing class descriptor for the object to be loaded).classSyncFailedExceptionSignals that theFileDescriptor.sync()method has failed to complete.classUnsupportedEncodingExceptionThrown when a program asks for a particular character converter that is unavailable.classUTFDataFormatExceptionSignals that an incorrectly encoded UTF-8 string has been encountered, most likely while reading someDataInputStream.classWriteAbortedExceptionSignals that theObjectInputStream.readObject()method has detected an exception marker in the input stream.Methods in java.io that throw IOException Modifier and Type Method Description protected voidObjectOutputStream. annotateClass(Class<?> aClass)Writes optional information for classaClassto the output stream.protected voidObjectOutputStream. annotateProxyClass(Class<?> aClass)Writes optional information for a proxy class to the target stream.WriterWriter. append(char c)Appends the charactercto the target.WriterWriter. append(CharSequence csq)Appends the character sequencecsqto the target.WriterWriter. append(CharSequence csq, int start, int end)Appends a subsequence of the character sequencecsqto the target.intBufferedInputStream. available()Returns an estimated number of bytes that can be read or skipped without blocking for more input.intFileInputStream. available()intFilterInputStream. available()intInputStream. available()Returns an estimated number of bytes that can be read or skipped without blocking for more input.intLineNumberInputStream. available()Deprecated.Returns an estimated number of bytes that can be read or skipped without blocking for more input.intObjectInput. available()Indicates the number of bytes of primitive data that can be read without blocking.intObjectInputStream. available()intPipedInputStream. available()Returns an estimated number of bytes that can be read or skipped without blocking for more input.intPushbackInputStream. available()intSequenceInputStream. available()voidBufferedInputStream. close()Closes this stream.voidBufferedOutputStream. close()voidBufferedReader. close()Closes this reader.voidBufferedWriter. close()Closes this writer.voidByteArrayInputStream. close()Closes this stream and frees resources associated with this stream.voidByteArrayOutputStream. close()Closes this stream.voidCloseable. close()Closes the object and release any system resources it holds.voidFileInputStream. close()voidFileOutputStream. close()voidFilterInputStream. close()Closes this stream.voidFilterOutputStream. close()Closes this stream.voidFilterReader. close()Closes this reader.voidFilterWriter. close()Closes this writer.voidInputStream. close()Closes this stream.voidInputStreamReader. close()Closes this reader.voidObjectInput. close()Closes this stream.voidObjectInputStream. close()Closes this stream.voidObjectOutput. close()Closes the target stream.voidObjectOutputStream. close()Closes this stream.voidOutputStream. close()Closes this stream.voidOutputStreamWriter. close()Closes this writer.voidPipedInputStream. close()Closes this stream.voidPipedOutputStream. close()Closes this stream.voidPipedReader. close()Closes this reader.voidPipedWriter. close()Closes this writer.voidPushbackInputStream. close()Closes this stream.voidPushbackReader. close()Closes this reader.voidRandomAccessFile. close()Closes this file.abstract voidReader. close()Closes this reader.voidSequenceInputStream. close()Closes all streams in this sequence of input stream.voidStringWriter. close()Calling this method has no effect.abstract voidWriter. close()Closes this writer.voidPipedInputStream. connect(PipedOutputStream src)Connects thisPipedInputStreamto aPipedOutputStream.voidPipedOutputStream. connect(PipedInputStream stream)Connects this stream to aPipedInputStream.voidPipedReader. connect(PipedWriter src)Connects thisPipedReaderto aPipedWriter.voidPipedWriter. connect(PipedReader reader)Connects thisPipedWriterto aPipedReader.booleanFile. createNewFile()Creates a new, empty file on the file system according to the path information stored in this file.static FileFile. createTempFile(String prefix, String suffix)Creates an empty temporary file using the given prefix and suffix as part of the file name.static FileFile. createTempFile(String prefix, String suffix, File directory)Creates an empty temporary file in the given directory using the given prefix and suffix as part of the file name.abstract booleanObjectInputStream.GetField. defaulted(String name)Indicates if the field identified bynameis defaulted.voidObjectInputStream. defaultReadObject()Default method to read objects from this stream.voidObjectOutputStream. defaultWriteObject()Default method to write objects to this stream.protected voidObjectOutputStream. drain()Writes buffered data to the target stream.protected voidFileInputStream. finalize()Ensures that all resources for this stream are released when it is about to be garbage collected.protected voidFileOutputStream. finalize()voidBufferedOutputStream. flush()Flushes this stream to ensure all pending data is written out to the target stream.voidBufferedWriter. flush()Flushes this writer.voidDataOutputStream. flush()Flushes this stream to ensure all pending data is sent out to the target stream.voidFilterOutputStream. flush()Ensures that all pending data is sent out to the target stream.voidFilterWriter. flush()Flushes this writer to ensure all pending data is sent out to the target writer.voidFlushable. flush()Flushes the object by writing out any buffered data to the underlying output.voidObjectOutput. flush()Flushes the target stream.voidObjectOutputStream. flush()Writes buffered data to the target stream and calls theflushmethod of the target stream.voidOutputStream. flush()Flushes this stream.voidOutputStreamWriter. flush()Flushes this writer.voidPipedOutputStream. flush()Notifies the readers of thisPipedInputStreamthat bytes can be read.voidPipedWriter. flush()Notifies the readers of thisPipedReaderthat characters can be read.abstract voidWriter. flush()Flushes this writer.abstract booleanObjectInputStream.GetField. get(String name, boolean defaultValue)Gets the value of the boolean field identified bynamefrom the persistent field.abstract byteObjectInputStream.GetField. get(String name, byte defaultValue)Gets the value of the byte field identified bynamefrom the persistent field.abstract charObjectInputStream.GetField. get(String name, char defaultValue)Gets the value of the character field identified bynamefrom the persistent field.abstract doubleObjectInputStream.GetField. get(String name, double defaultValue)Gets the value of the double field identified bynamefrom the persistent field.abstract floatObjectInputStream.GetField. get(String name, float defaultValue)Gets the value of the float field identified bynamefrom the persistent field.abstract intObjectInputStream.GetField. get(String name, int defaultValue)Gets the value of the integer field identified bynamefrom the persistent field.abstract longObjectInputStream.GetField. get(String name, long defaultValue)Gets the value of the long field identified bynamefrom the persistent field.abstract shortObjectInputStream.GetField. get(String name, short defaultValue)Gets the value of the short field identified bynamefrom the persistent field.abstract ObjectObjectInputStream.GetField. get(String name, Object defaultValue)Gets the value of the object field identified bynamefrom the persistent field.FileFile. getCanonicalFile()Returns a new file created using the canonical path of this file.StringFile. getCanonicalPath()Returns the canonical path of this file.FileDescriptorFileInputStream. getFD()Returns the underlying file descriptor.FileDescriptorFileOutputStream. getFD()Returns the underlying file descriptor.FileDescriptorRandomAccessFile. getFD()Gets this file'sFileDescriptor.longRandomAccessFile. getFilePointer()Gets the current position within this file.longRandomAccessFile. length()Returns the length of this file in bytes.voidBufferedReader. mark(int markLimit)Sets a mark position in this reader.voidCharArrayReader. mark(int readLimit)Sets a mark position in this reader.voidFilterReader. mark(int readlimit)Sets a mark position in this reader.voidLineNumberReader. mark(int readlimit)Sets a mark position in this reader.voidPushbackReader. mark(int readAheadLimit)Marks the current position in this stream.voidReader. mark(int readLimit)Sets a mark position in this reader.voidStringReader. mark(int readLimit)Sets a mark position in this reader.voidBufferedWriter. newLine()Writes a newline to this writer.intStreamTokenizer. nextToken()Parses the next token from this tokenizer's source stream or reader.ObjectOutputStream.PutFieldObjectOutputStream. putFields()Gets this stream'sPutFieldobject.intBufferedInputStream. read()Reads a single byte from this stream and returns it as an integer in the range from 0 to 255.intBufferedInputStream. read(byte[] buffer, int byteOffset, int byteCount)intBufferedReader. read()Reads a single character from this reader and returns it with the two higher-order bytes set to 0.intBufferedReader. read(char[] buffer, int offset, int length)Reads up tolengthcharacters from this reader and stores them atoffsetin the character arraybuffer.intCharArrayReader. read()Reads a single character from this reader and returns it as an integer with the two higher-order bytes set to 0.intCharArrayReader. read(char[] buffer, int offset, int count)Reads up tocountcharacters from this CharArrayReader and stores them atoffsetin the character arraybuffer.intDataInputStream. read(byte[] buffer)intDataInputStream. read(byte[] buffer, int byteOffset, int byteCount)intFileInputStream. read()intFileInputStream. read(byte[] buffer, int byteOffset, int byteCount)intFilterInputStream. read()Reads a single byte from the filtered stream and returns it as an integer in the range from 0 to 255.intFilterInputStream. read(byte[] buffer, int byteOffset, int byteCount)intFilterReader. read()Reads a single character from the filtered reader and returns it as an integer with the two higher-order bytes set to 0.intFilterReader. read(char[] buffer, int offset, int count)Reads up tocountcharacters from the filtered reader and stores them in the byte arraybufferstarting atoffset.abstract intInputStream. read()Reads a single byte from this stream and returns it as an integer in the range from 0 to 255.intInputStream. read(byte[] buffer)Equivalent toread(buffer, 0, buffer.length).intInputStream. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountbytes from this stream and stores them in the byte arraybufferstarting atbyteOffset.intInputStreamReader. read()Reads a single character from this reader and returns it as an integer with the two higher-order bytes set to 0.intInputStreamReader. read(char[] buffer, int offset, int count)Reads up tocountcharacters from this reader and stores them at positionoffsetin the character arraybuffer.intLineNumberInputStream. read()Deprecated.Reads a single byte from the filtered stream and returns it as an integer in the range from 0 to 255.intLineNumberInputStream. read(byte[] buffer, int byteOffset, int byteCount)Deprecated.Reads up tobyteCountbytes from the filtered stream and stores them in the byte arraybufferstarting atbyteOffset.intLineNumberReader. read()Reads a single character from the source reader and returns it as an integer with the two higher-order bytes set to 0.intLineNumberReader. read(char[] buffer, int offset, int count)Reads up tocountcharacters from the source reader and stores them in the character arraybufferstarting atoffset.intObjectInput. read()Reads a single byte from this stream and returns it as an integer in the range from 0 to 255.intObjectInput. read(byte[] buffer)Reads bytes from this stream into the byte arraybuffer.intObjectInput. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountbytes from this stream and stores them in byte arraybufferstarting at offsetbyteOffset.intObjectInputStream. read()Reads a single byte from the source stream and returns it as an integer in the range from 0 to 255.intObjectInputStream. read(byte[] buffer, int byteOffset, int byteCount)intPipedInputStream. read()Reads a single byte from this stream and returns it as an integer in the range from 0 to 255.intPipedInputStream. read(byte[] bytes, int byteOffset, int byteCount)Reads up tobyteCountbytes from this stream and stores them in the byte arraybytesstarting atbyteOffset.intPipedReader. read()Reads a single character from this reader and returns it as an integer with the two higher-order bytes set to 0.intPipedReader. read(char[] buffer, int offset, int count)Reads up tocountcharacters from this reader and stores them in the character arraybufferstarting atoffset.intPushbackInputStream. read()Reads a single byte from this stream and returns it as an integer in the range from 0 to 255.intPushbackInputStream. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountbytes from this stream and stores them in the byte arraybufferstarting atbyteOffset.intPushbackReader. read()Reads a single character from this reader and returns it as an integer with the two higher-order bytes set to 0.intPushbackReader. read(char[] buffer, int offset, int count)Reads up tocountcharacters from this reader and stores them in character arraybufferstarting atoffset.intRandomAccessFile. read()Reads a single byte from the current position in this file and returns it as an integer in the range from 0 to 255.intRandomAccessFile. read(byte[] buffer)Reads bytes from the current position in this file and stores them in the byte arraybuffer.intRandomAccessFile. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountbytes from the current position in this file and stores them in the byte arraybufferstarting atbyteOffset.intReader. read()Reads a single character from this reader and returns it as an integer with the two higher-order bytes set to 0.intReader. read(char[] buffer)Reads characters from this reader and stores them in the character arraybufferstarting at offset 0.abstract intReader. read(char[] buffer, int offset, int count)Reads up tocountcharacters from this reader and stores them atoffsetin the character arraybuffer.intReader. read(CharBuffer target)Reads characters and puts them into thetargetcharacter buffer.intSequenceInputStream. read()Reads a single byte from this sequence of input streams and returns it as an integer in the range from 0 to 255.intSequenceInputStream. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountbytes from this sequence of input streams and stores them in the byte arraybufferstarting atbyteOffset.intStringReader. read()Reads a single character from the source string and returns it as an integer with the two higher-order bytes set to 0.intStringReader. read(char[] buffer, int offset, int count)Reads up tocountcharacters from the source string and stores them atoffsetin the character arraybuffer.booleanDataInput. readBoolean()Reads a boolean.booleanDataInputStream. readBoolean()booleanObjectInputStream. readBoolean()Reads a boolean from the source stream.booleanRandomAccessFile. readBoolean()Reads a boolean from the current position in this file.byteDataInput. readByte()Reads an 8-bit byte value.byteDataInputStream. readByte()byteObjectInputStream. readByte()Reads a byte (8 bit) from the source stream.byteRandomAccessFile. readByte()Reads an 8-bit byte from the current position in this file.charDataInput. readChar()Reads a big-endian 16-bit character value.charDataInputStream. readChar()charObjectInputStream. readChar()Reads a character (16 bit) from the source stream.charRandomAccessFile. readChar()Reads a big-endian 16-bit character from the current position in this file.protected ObjectStreamClassObjectInputStream. readClassDescriptor()Reads a class descriptor from the source stream.doubleDataInput. readDouble()Reads a big-endian 64-bit double value.doubleDataInputStream. readDouble()doubleObjectInputStream. readDouble()Reads a double (64 bit) from the source stream.doubleRandomAccessFile. readDouble()Reads a big-endian 64-bit double from the current position in this file.voidExternalizable. readExternal(ObjectInput input)Reads the next object from the ObjectInputinput.ObjectInputStream.GetFieldObjectInputStream. readFields()Reads the persistent fields of the object that is currently being read from the source stream.floatDataInput. readFloat()Reads a big-endian 32-bit float value.floatDataInputStream. readFloat()floatObjectInputStream. readFloat()Reads a float (32 bit) from the source stream.floatRandomAccessFile. readFloat()Reads a big-endian 32-bit float from the current position in this file.voidDataInput. readFully(byte[] dst)Equivalent toreadFully(dst, 0, dst.length);.voidDataInput. readFully(byte[] dst, int offset, int byteCount)ReadsbyteCountbytes from this stream and stores them in the byte arraydststarting atoffset.voidDataInputStream. readFully(byte[] dst)voidDataInputStream. readFully(byte[] dst, int offset, int byteCount)voidObjectInputStream. readFully(byte[] dst)Reads bytes from the source stream into the byte arraydst.voidObjectInputStream. readFully(byte[] dst, int offset, int byteCount)ReadsbyteCountbytes from the source stream into the byte arraydst.voidRandomAccessFile. readFully(byte[] dst)Equivalent toreadFully(dst, 0, dst.length);.voidRandomAccessFile. readFully(byte[] dst, int offset, int byteCount)ReadsbyteCountbytes from this stream and stores them in the byte arraydststarting atoffset.intDataInput. readInt()Reads a big-endian 32-bit integer value.intDataInputStream. readInt()intObjectInputStream. readInt()Reads an integer (32 bit) from the source stream.intRandomAccessFile. readInt()Reads a big-endian 32-bit integer from the current position in this file.StringBufferedReader. readLine()Returns the next line of text available from this reader.StringDataInput. readLine()Returns a string containing the next line of text available from this stream.StringDataInputStream. readLine()Deprecated.This method cannot be trusted to convert bytes to characters correctly.StringLineNumberReader. readLine()Returns the next line of text available from this reader.StringObjectInputStream. readLine()Deprecated.UseBufferedReaderinstead.StringRandomAccessFile. readLine()Reads a line of text form the current position in this file.longDataInput. readLong()Reads a big-endian 64-bit long value.longDataInputStream. readLong()longObjectInputStream. readLong()Reads a long (64 bit) from the source stream.longRandomAccessFile. readLong()Reads a big-endian 64-bit long from the current position in this file.ObjectObjectInput. readObject()Reads the next object from this stream.ObjectObjectInputStream. readObject()Reads the next object from the source stream.protected ObjectObjectInputStream. readObjectOverride()Method to be overridden by subclasses to read the next object from the source stream.shortDataInput. readShort()Reads a big-endian 16-bit short value.shortDataInputStream. readShort()shortObjectInputStream. readShort()Reads a short (16 bit) from the source stream.shortRandomAccessFile. readShort()Reads a big-endian 16-bit short from the current position in this file.protected voidObjectInputStream. readStreamHeader()Reads and validates the ObjectInputStream header from the source stream.ObjectObjectInputStream. readUnshared()Reads the next unshared object from the source stream.intDataInput. readUnsignedByte()Reads an unsigned 8-bit byte value and returns it as an int.intDataInputStream. readUnsignedByte()intObjectInputStream. readUnsignedByte()Reads an unsigned byte (8 bit) from the source stream.intRandomAccessFile. readUnsignedByte()Reads an unsigned 8-bit byte from the current position in this file and returns it as an integer.intDataInput. readUnsignedShort()Reads a big-endian 16-bit unsigned short value and returns it as an int.intDataInputStream. readUnsignedShort()intObjectInputStream. readUnsignedShort()Reads an unsigned short (16 bit) from the source stream.intRandomAccessFile. readUnsignedShort()Reads an unsigned big-endian 16-bit short from the current position in this file and returns it as an integer.StringDataInput. readUTF()Reads a string encoded withmodified UTF-8.StringDataInputStream. readUTF()static StringDataInputStream. readUTF(DataInput in)StringObjectInputStream. readUTF()Reads a string encoded inmodified UTF-8from the source stream.StringRandomAccessFile. readUTF()Reads a string that is encoded inmodified UTF-8from this file.booleanBufferedReader. ready()Indicates whether this reader is ready to be read without blocking.booleanCharArrayReader. ready()Indicates whether this reader is ready to be read without blocking.booleanFilterReader. ready()Indicates whether this reader is ready to be read without blocking.booleanInputStreamReader. ready()Indicates whether this reader is ready to be read without blocking.booleanPipedReader. ready()Indicates whether this reader is ready to be read without blocking.booleanPushbackReader. ready()Indicates whether this reader is ready to be read without blocking.booleanReader. ready()Indicates whether this reader is ready to be read without blocking.booleanStringReader. ready()Indicates whether this reader is ready to be read without blocking.protected voidPipedInputStream. receive(int oneByte)Receives a byte and stores it in this stream'sbuffer.protected ObjectObjectOutputStream. replaceObject(Object object)Allows trusted subclasses to substitute the specified originalobjectwith a new object.voidBufferedInputStream. reset()Resets this stream to the last marked location.voidBufferedReader. reset()Resets this reader's position to the lastmark()location.voidCharArrayReader. reset()Resets this reader's position to the lastmark()location.voidFilterInputStream. reset()Resets this stream to the last marked location.voidFilterReader. reset()Resets this reader's position to the last marked location.voidInputStream. reset()Resets this stream to the last marked location.voidLineNumberInputStream. reset()Deprecated.Resets this stream to the last marked location.voidLineNumberReader. reset()Resets this reader to the last marked location.voidObjectOutputStream. reset()Resets the state of this stream.voidPushbackInputStream. reset()Resets this stream to the last marked position.voidPushbackReader. reset()Resets this reader to the last marked position.voidReader. reset()Resets this reader's position to the lastmark()location.voidStringReader. reset()Resets this reader's position to the lastmark()location.protected Class<?>ObjectInputStream. resolveClass(ObjectStreamClass osClass)Loads the Java class corresponding to the class descriptorosClassthat has just been read from the source stream.protected ObjectObjectInputStream. resolveObject(Object object)Allows trusted subclasses to substitute the specified originalobjectwith a new object.protected Class<?>ObjectInputStream. resolveProxyClass(String[] interfaceNames)Creates the proxy class that implements the interfaces specified ininterfaceNames.voidRandomAccessFile. seek(long offset)Moves this file's file pointer to a new position, from where followingread,writeorskipoperations are done.voidRandomAccessFile. setLength(long newLength)Sets the length of this file tonewLength.longBufferedInputStream. skip(long byteCount)SkipsbyteCountbytes in this stream.longBufferedReader. skip(long charCount)Skips at mostcharCountchars in this stream.longCharArrayReader. skip(long charCount)SkipscharCountcharacters in this reader.longFileInputStream. skip(long byteCount)longFilterInputStream. skip(long byteCount)SkipsbyteCountbytes in this stream.longFilterReader. skip(long charCount)SkipscharCountcharacters in this reader.longInputStream. skip(long byteCount)Skips at mostnbytes in this stream.longLineNumberInputStream. skip(long byteCount)Deprecated.Skipscountnumber of bytes in this stream.longLineNumberReader. skip(long charCount)SkipscharCountcharacters in this reader.longObjectInput. skip(long byteCount)SkipsbyteCountbytes on this stream.longPushbackInputStream. skip(long byteCount)SkipsbyteCountbytes in this stream.longPushbackReader. skip(long charCount)SkipscharCountcharacters in this reader.longReader. skip(long charCount)SkipscharCountcharacters in this reader.longStringReader. skip(long charCount)MovescharCountcharacters in the source string.intDataInput. skipBytes(int count)Skipscountnumber of bytes.intDataInputStream. skipBytes(int count)Skipscountnumber of bytes in this stream.intObjectInputStream. skipBytes(int length)Skipslengthbytes on the source stream.intRandomAccessFile. skipBytes(int count)Skips overcountbytes in this file.voidPushbackInputStream. unread(byte[] buffer)Pushes all the bytes inbufferback to this stream.voidPushbackInputStream. unread(byte[] buffer, int offset, int length)Pushes a subset of the bytes inbufferback to this stream.voidPushbackInputStream. unread(int oneByte)Pushes the specified byteoneByteback to this stream.voidPushbackReader. unread(char[] buffer)Pushes all the characters inbufferback to this reader.voidPushbackReader. unread(char[] buffer, int offset, int length)Pushes a subset of the characters inbufferback to this reader.voidPushbackReader. unread(int oneChar)Pushes the specified characteroneCharback to this reader.voidObjectOutputStream. useProtocolVersion(int version)Sets the specified protocol version to be used by this stream.voidBufferedOutputStream. write(byte[] buffer, int offset, int length)Writescountbytes from the byte arraybufferstarting atoffsetto this stream.voidBufferedOutputStream. write(int oneByte)Writes one byte to this stream.voidBufferedWriter. write(char[] buffer, int offset, int count)Writescountcharacters starting atoffsetinbufferto this writer.voidBufferedWriter. write(int oneChar)Writes the characteroneCharto this writer.voidBufferedWriter. write(String str, int offset, int count)Writescountcharacters starting atoffsetinstrto this writer.voidDataOutput. write(byte[] buffer)Writes the entire contents of the byte arraybufferto this stream.voidDataOutput. write(byte[] buffer, int offset, int count)Writescountbytes from the byte arraybufferstarting at offsetindex.voidDataOutput. write(int oneByte)Writes the specified 8-bit byte.voidDataOutputStream. write(byte[] buffer, int offset, int count)Writescountbytes from the byte arraybufferstarting atoffsetto the target stream.voidDataOutputStream. write(int oneByte)Writes a byte to the target stream.voidFileOutputStream. write(byte[] buffer, int byteOffset, int byteCount)voidFileOutputStream. write(int oneByte)voidFilterOutputStream. write(byte[] buffer, int offset, int length)Writescountbytes from the byte arraybufferstarting atoffsetto the target stream.voidFilterOutputStream. write(int oneByte)Writes one byte to the target stream.voidFilterWriter. write(char[] buffer, int offset, int count)Writescountcharacters from the char arraybufferstarting at positionoffsetto the target writer.voidFilterWriter. write(int oneChar)Writes the specified characteroneCharto the target writer.voidFilterWriter. write(String str, int offset, int count)Writescountcharacters from the stringstrstarting at positionindexto this writer.voidObjectOutput. write(byte[] buffer)Writes the entire contents of the byte arraybufferto the output stream.voidObjectOutput. write(byte[] buffer, int offset, int count)Writescountbytes from the byte arraybufferstarting at positionoffsetto the target stream.voidObjectOutput. write(int value)Writes a single byte to the target stream.abstract voidObjectOutputStream.PutField. write(ObjectOutput out)Deprecated.This method is unsafe and may corrupt the target stream.voidObjectOutputStream. write(byte[] buffer, int offset, int length)Writescountbytes from the byte arraybufferstarting at offsetindexto the target stream.voidObjectOutputStream. write(int value)Writes a single byte to the target stream.voidOutputStream. write(byte[] buffer)Equivalent towrite(buffer, 0, buffer.length).voidOutputStream. write(byte[] buffer, int offset, int count)Writescountbytes from the byte arraybufferstarting at positionoffsetto this stream.abstract voidOutputStream. write(int oneByte)Writes a single byte to this stream.voidOutputStreamWriter. write(char[] buffer, int offset, int count)Writescountcharacters starting atoffsetinbufto this writer.voidOutputStreamWriter. write(int oneChar)Writes the characteroneCharto this writer.voidOutputStreamWriter. write(String str, int offset, int count)Writescountcharacters starting atoffsetinstrto this writer.voidPipedOutputStream. write(byte[] buffer, int offset, int count)Writescountbytes from the byte arraybufferstarting atoffsetto this stream.voidPipedOutputStream. write(int oneByte)Writes a single byte to this stream.voidPipedWriter. write(char[] buffer, int offset, int count)Writescountcharacters from the character arraybufferstarting at offsetindexto this writer.voidPipedWriter. write(int c)Writes a single charactercto this writer.voidRandomAccessFile. write(byte[] buffer)Writes the entire contents of the byte arraybufferto this file, starting at the current file pointer.voidRandomAccessFile. write(byte[] buffer, int byteOffset, int byteCount)WritesbyteCountbytes from the byte arraybufferto this file, starting at the current file pointer and usingbyteOffsetas the first position withinbufferto get bytes.voidRandomAccessFile. write(int oneByte)Writes a byte to this file, starting at the current file pointer.voidWriter. write(char[] buf)Writes the entire character bufferbufto the target.abstract voidWriter. write(char[] buf, int offset, int count)Writescountcharacters starting atoffsetinbufto the target.voidWriter. write(int oneChar)Writes one character to the target.voidWriter. write(String str)Writes the characters from the specified string to the target.voidWriter. write(String str, int offset, int count)Writescountcharacters fromstrstarting atoffsetto the target.voidDataOutput. writeBoolean(boolean val)Writes the specified boolean.voidDataOutputStream. writeBoolean(boolean val)Writes a boolean to the target stream.voidObjectOutputStream. writeBoolean(boolean value)Writes a boolean to the target stream.voidRandomAccessFile. writeBoolean(boolean val)Writes a boolean to this file as a single byte (1 for true, 0 for false), starting at the current file pointer.voidDataOutput. writeByte(int val)Writes the specified 8-bit byte.voidDataOutputStream. writeByte(int val)Writes an 8-bit byte to the target stream.voidObjectOutputStream. writeByte(int value)Writes a byte (8 bit) to the target stream.voidRandomAccessFile. writeByte(int val)Writes an 8-bit byte to this file, starting at the current file pointer.voidDataOutput. writeBytes(String str)Writes the low order 8-bit bytes from the specified string.voidDataOutputStream. writeBytes(String str)voidObjectOutputStream. writeBytes(String value)Writes the stringvalueas a sequence of bytes to the target stream.voidRandomAccessFile. writeBytes(String str)Writes the low order 8-bit bytes from a string to this file, starting at the current file pointer.voidDataOutput. writeChar(int val)Writes the specified 16-bit character in big-endian order.voidDataOutputStream. writeChar(int val)voidObjectOutputStream. writeChar(int value)Writes a character (16 bit) to the target stream.voidRandomAccessFile. writeChar(int val)Writes a big-endian 16-bit character to this file, starting at the current file pointer.voidDataOutput. writeChars(String str)Writes the 16-bit characters contained instrin big-endian order.voidDataOutputStream. writeChars(String str)voidObjectOutputStream. writeChars(String value)Writes the stringvalueas a sequence of characters to the target stream.voidRandomAccessFile. writeChars(String str)Writes big-endian 16-bit characters fromstrto this file, starting at the current file pointer.protected voidObjectOutputStream. writeClassDescriptor(ObjectStreamClass classDesc)Writes a class descriptor to the target stream.voidDataOutput. writeDouble(double val)Writes the specified 64-bit double in big-endian order.voidDataOutputStream. writeDouble(double val)voidObjectOutputStream. writeDouble(double value)Writes a double (64 bit) to the target stream.voidRandomAccessFile. writeDouble(double val)Writes a big-endian 64-bit double to this file, starting at the current file pointer.voidExternalizable. writeExternal(ObjectOutput output)Writes the receiver to the ObjectOutputoutput.voidObjectOutputStream. writeFields()Writes the fields of the object currently being written to the target stream.voidDataOutput. writeFloat(float val)Writes the specified 32-bit float in big-endian order.voidDataOutputStream. writeFloat(float val)voidObjectOutputStream. writeFloat(float value)Writes a float (32 bit) to the target stream.voidRandomAccessFile. writeFloat(float val)Writes a big-endian 32-bit float to this file, starting at the current file pointer.voidDataOutput. writeInt(int val)Writes the specified 32-bit int in big-endian order.voidDataOutputStream. writeInt(int val)voidObjectOutputStream. writeInt(int value)Writes an integer (32 bit) to the target stream.voidRandomAccessFile. writeInt(int val)Writes a big-endian 32-bit integer to this file, starting at the current file pointer.voidDataOutput. writeLong(long val)Writes the specified 64-bit long in big-endian order.voidDataOutputStream. writeLong(long val)voidObjectOutputStream. writeLong(long value)Writes a long (64 bit) to the target stream.voidRandomAccessFile. writeLong(long val)Writes a big-endian 64-bit long to this file, starting at the current file pointer.voidObjectOutput. writeObject(Object obj)Writes the specified objectobjto the target stream.voidObjectOutputStream. writeObject(Object object)Writes an object to the target stream.protected voidObjectOutputStream. writeObjectOverride(Object object)Method to be overridden by subclasses to writeobjectto the target stream.voidDataOutput. writeShort(int val)Writes the specified 16-bit short in big-endian order.voidDataOutputStream. writeShort(int val)voidObjectOutputStream. writeShort(int value)Writes a short (16 bit) to the target stream.voidRandomAccessFile. writeShort(int val)Writes a big-endian 16-bit short to this file, starting at the current file pointer.protected voidObjectOutputStream. writeStreamHeader()Writes theObjectOutputStreamheader to the target stream.voidByteArrayOutputStream. writeTo(OutputStream out)Takes the contents of this stream and writes it to the output streamout.voidCharArrayWriter. writeTo(Writer out)Writes the contents of thisCharArrayWriterto anotherWriter.voidObjectOutputStream. writeUnshared(Object object)Writes an unshared object to the target stream.voidDataOutput. writeUTF(String str)Writes the specified string encoded inmodified UTF-8.voidDataOutputStream. writeUTF(String str)voidObjectOutputStream. writeUTF(String value)Writes a string encoded withmodified UTF-8to the target stream.voidRandomAccessFile. writeUTF(String str)Writes a string encoded withmodified UTF-8to this file, starting at the current file pointer.Constructors in java.io that throw IOException Constructor Description FileWriter(File file)Creates a FileWriter using the Filefile.FileWriter(File file, boolean append)Creates a FileWriter using the Filefile.FileWriter(String filename)Creates a FileWriter using the platform dependentfilename.FileWriter(String filename, boolean append)Creates a FileWriter using the platform dependentfilename.ObjectInputStream()Constructs a new ObjectInputStream.ObjectInputStream(InputStream input)Constructs a new ObjectInputStream that reads from the InputStreaminput.ObjectOutputStream()Constructs a newObjectOutputStream.ObjectOutputStream(OutputStream output)Constructs a new ObjectOutputStream that writes to the OutputStreamoutput.PipedInputStream(PipedOutputStream out)PipedInputStream(PipedOutputStream out, int pipeSize)Constructs a newPipedInputStreamconnected to the givenPipedOutputStream, with the given buffer size.PipedOutputStream(PipedInputStream target)PipedReader(PipedWriter out)PipedReader(PipedWriter out, int pipeSize)Constructs a newPipedReaderconnected to the givenPipedWriter, with the given buffer size.PipedWriter(PipedReader destination)Constructs a newPipedWriterconnected todestination. -
Uses of IOException in java.lang
Methods in java.lang that throw IOException Modifier and Type Method Description AppendableAppendable. append(char c)Appends the specified character.AppendableAppendable. append(CharSequence csq)Appends the character sequencecsq.AppendableAppendable. append(CharSequence csq, int start, int end)Appends a subsequence ofcsq.ProcessRuntime. exec(String prog)Executes the specified program in a separate native process.ProcessRuntime. exec(String[] progArray)Executes the specified command and its arguments in a separate native process.ProcessRuntime. exec(String[] progArray, String[] envp)Executes the specified command and its arguments in a separate native process.ProcessRuntime. exec(String[] progArray, String[] envp, File directory)Executes the specified command and its arguments in a separate native process.ProcessRuntime. exec(String prog, String[] envp)Executes the specified program in a separate native process.ProcessRuntime. exec(String prog, String[] envp, File directory)Executes the specified program in a separate native process.protected Enumeration<URL>ClassLoader. findResources(String resName)Finds an enumeration of URLs for the resource with the specified name.Enumeration<URL>ClassLoader. getResources(String resName)Returns an enumeration of URLs for the resource with the specified name.static Enumeration<URL>ClassLoader. getSystemResources(String resName)Returns an enumeration of URLs for the resource with the specified name.static ChannelSystem. inheritedChannel()Returns the inherited channel from the creator of the current virtual machine.intReadable. read(CharBuffer cb)Reads characters into the specifiedCharBuffer.ProcessProcessBuilder. start()Starts a new process based on the current state of this process builder. -
Uses of IOException in java.net
Subclasses of IOException in java.net Modifier and Type Class Description classBindExceptionABindExceptionis thrown when a process cannot bind a local address/port, either because it is already bound or reserved by the OS.classConnectExceptionAConnectExceptionis thrown if a connection cannot be established to a remote host on a specific port.classHttpRetryExceptionIf a HTTP request has to be retried, this exception will be thrown if the request cannot be retried automatically.classMalformedURLExceptionThis exception is thrown when a program attempts to create an URL from an incorrect specification.classNoRouteToHostExceptionTheNoRouteToHostExceptionwill be thrown while attempting to connect to a remote host but the host cannot be reached for instance because of a badly configured router or a blocking firewall.classPortUnreachableExceptionThisPortUnreachableExceptionwill be thrown if anICMP_Port_Unreachablemessage has been received.classProtocolExceptionSignals that either a connection attempt to a socket of the wrong type, the application of an unsupported operation or that a general error in the underlying protocol has occurred.classSocketExceptionThisSocketExceptionmay be thrown during socket creation or setting options, and is the superclass of all other socket related exceptions.classSocketTimeoutExceptionThis exception is thrown when a timeout expired on a socketreadoracceptoperation.classUnknownHostExceptionThrown when a hostname can not be resolved.classUnknownServiceExceptionIs thrown if no appropriateContentHandlercould be found for a particular service requested by the URL connection.Methods in java.net with parameters of type IOException Modifier and Type Method Description abstract voidProxySelector. connectFailed(URI uri, SocketAddress address, IOException failure)Notifies thisProxySelectorthat a connection to the proxy server could not be established.Methods in java.net that throw IOException Modifier and Type Method Description protected voidPlainSocketImpl. accept(SocketImpl newImpl)SocketServerSocket. accept()Waits for an incoming request and blocks until the connection is opened.protected abstract voidSocketImpl. accept(SocketImpl newSocket)Waits for an incoming request and blocks until the connection is opened on the given socket.protected intPlainSocketImpl. available()protected abstract intSocketImpl. available()Returns the available number of bytes which are readable from this socket without blocking.protected voidPlainSocketImpl. bind(InetAddress address, int port)voidServerSocket. bind(SocketAddress localAddr)Binds this server socket to the given local socket address with a maximum backlog of 50 unaccepted connections.voidServerSocket. bind(SocketAddress localAddr, int backlog)Binds this server socket to the given local socket address.voidSocket. bind(SocketAddress localAddr)Binds this socket to the given local host address and port specified by the SocketAddresslocalAddr.protected abstract voidSocketImpl. bind(InetAddress address, int port)Binds this socket to the specified local host address and port number.protected voidPlainSocketImpl. close()voidServerSocket. close()Closes this server socket and its implementation.voidSocket. close()Closes the socket.protected abstract voidSocketImpl. close()Closes this socket.protected voidPlainSocketImpl. connect(String aHost, int aPort)protected voidPlainSocketImpl. connect(InetAddress anAddr, int aPort)protected voidPlainSocketImpl. connect(SocketAddress remoteAddr, int timeout)voidSocket. connect(SocketAddress remoteAddr)Connects this socket to the given remote host address and port specified by the SocketAddressremoteAddr.voidSocket. connect(SocketAddress remoteAddr, int timeout)Connects this socket to the given remote host address and port specified by the SocketAddressremoteAddrwith the specified timeout.protected abstract voidSocketImpl. connect(String host, int port)Connects this socket to the specified remote host and port number.protected abstract voidSocketImpl. connect(InetAddress address, int port)Connects this socket to the specified remote host address and port number.protected abstract voidSocketImpl. connect(SocketAddress remoteAddr, int timeout)Connects this socket to the remote host address and port number specified by theSocketAddressobject with the given timeout.abstract voidURLConnection. connect()Opens a connection to the resource.protected voidPlainServerSocketImpl. create(boolean isStreaming)protected voidPlainSocketImpl. create(boolean streaming)protected abstract voidSocketImpl. create(boolean isStreaming)Creates a new unconnected socket.Enumeration<URL>URLClassLoader. findResources(String name)Returns all known URLs which point to the specified resource.abstract Map<String,List<String>>CookieHandler. get(URI uri, Map<String,List<String>> requestHeaders)Gets all cookies for a specific URI from the cookie cache.Map<String,List<String>>CookieManager. get(URI uri, Map<String,List<String>> requestHeaders)Searches and gets all cookies in the cache by the specified uri in the request header.abstract CacheResponseResponseCache. get(URI uri, String requestMethod, Map<String,List<String>> requestHeaders)Returns the cached response corresponding to the given request.AttributesJarURLConnection. getAttributes()Returns all attributes of theJarEntryreferenced by thisJarURLConnection.abstract OutputStreamCacheRequest. getBody()Returns anOutputStreamwhich is used to write the response body.abstract InputStreamCacheResponse. getBody()Returns anInputStreamto access the response body.Certificate[]JarURLConnection. getCertificates()Returns all certificates of theJarEntryreferenced by thisJarURLConnectioninstance.abstract ObjectContentHandler. getContent(URLConnection uConn)Returns the object pointed by the specified URL connectionuConn.ObjectContentHandler. getContent(URLConnection uConn, Class[] types)Returns the object pointed by the specified URL connectionuConn.ObjectURL. getContent()Returns the content of the resource which is referred by this URL.ObjectURL. getContent(Class[] types)Equivalent toopenConnection().getContent(types).ObjectURLConnection. getContent()Returns an object representing the content of the resource thisURLConnectionis connected to.ObjectURLConnection. getContent(Class[] types)Returns an object representing the content of the resource thisURLConnectionis connected to.abstract Map<String,List<String>>CacheResponse. getHeaders()Returns an immutableMapwhich contains the response headers information.protected InputStreamPlainSocketImpl. getInputStream()InputStreamSocket. getInputStream()Returns an input stream to read data from this socket.protected abstract InputStreamSocketImpl. getInputStream()Gets the input stream of this socket.InputStreamURLConnection. getInputStream()Returns anInputStreamfor reading data from the resource pointed by thisURLConnection.JarEntryJarURLConnection. getJarEntry()Gets theJarEntryobject of the entry referenced by thisJarURLConnection.abstract JarFileJarURLConnection. getJarFile()Gets theJarFileobject referenced by thisJarURLConnection.AttributesJarURLConnection. getMainAttributes()Gets all attributes of the manifest file referenced by thisJarURLConnection.ManifestJarURLConnection. getManifest()Gets the manifest file associated with this JAR-URL.protected OutputStreamPlainSocketImpl. getOutputStream()OutputStreamSocket. getOutputStream()Returns an output stream to write data into this socket.protected abstract OutputStreamSocketImpl. getOutputStream()Gets the output stream of this socket.OutputStreamURLConnection. getOutputStream()Returns anOutputStreamfor writing data to thisURLConnection.PermissionHttpURLConnection. getPermission()Returns the permission object (in this caseSocketPermission) with the host and the port number as the target name and"resolve, connect"as the action list.PermissionURLConnection. getPermission()Returns aPermissionobject representing all needed permissions to open this connection.intHttpURLConnection. getResponseCode()Returns the response code returned by the remote HTTP server.StringHttpURLConnection. getResponseMessage()Returns the response message returned by the remote HTTP server.intServerSocket. getSoTimeout()Gets the socketaccept timeout.protected abstract intDatagramSocketImpl. getTimeToLive()Gets the time-to-live (TTL) for multicast packets sent on this socket.intMulticastSocket. getTimeToLive()Returns the time-to-live (TTL) for multicast packets sent on this socket.intPlainDatagramSocketImpl. getTimeToLive()protected abstract byteDatagramSocketImpl. getTTL()Deprecated.UseDatagramSocketImpl.getTimeToLive()instead.byteMulticastSocket. getTTL()Deprecated.UseMulticastSocket.getTimeToLive()instead.bytePlainDatagramSocketImpl. getTTL()static StringURLConnection. guessContentTypeFromStream(InputStream is)Determines the MIME-type of the resource represented by the input streamisby reading its first few characters.protected voidServerSocket. implAccept(Socket aSocket)Invokes the server socket implementation to accept a connection on the given socketaSocket.booleanInetAddress. isReachable(int timeout)Tries to reach thisInetAddress.booleanInetAddress. isReachable(NetworkInterface networkInterface, int ttl, int timeout)Tries to reach thisInetAddress.protected abstract voidDatagramSocketImpl. join(InetAddress addr)Adds this socket to the multicast groupaddr.voidPlainDatagramSocketImpl. join(InetAddress addr)protected abstract voidDatagramSocketImpl. joinGroup(SocketAddress addr, NetworkInterface netInterface)Adds this socket to the multicast groupaddr.voidMulticastSocket. joinGroup(InetAddress groupAddr)Adds this socket to the specified multicast group.voidMulticastSocket. joinGroup(SocketAddress groupAddress, NetworkInterface netInterface)Adds this socket to the specified multicast group.voidPlainDatagramSocketImpl. joinGroup(SocketAddress addr, NetworkInterface netInterface)protected abstract voidDatagramSocketImpl. leave(InetAddress addr)Removes this socket from the multicast groupaddr.voidPlainDatagramSocketImpl. leave(InetAddress addr)protected abstract voidDatagramSocketImpl. leaveGroup(SocketAddress addr, NetworkInterface netInterface)Removes this socket from the multicast groupaddr.voidMulticastSocket. leaveGroup(InetAddress groupAddr)Removes this socket from the specified multicast group.voidMulticastSocket. leaveGroup(SocketAddress groupAddress, NetworkInterface netInterface)Removes this socket from the specified multicast group.voidPlainDatagramSocketImpl. leaveGroup(SocketAddress addr, NetworkInterface netInterface)protected voidPlainSocketImpl. listen(int backlog)protected abstract voidSocketImpl. listen(int backlog)Listens for connection requests on this streaming socket.URLConnectionURL. openConnection()Returns a new connection to the resource referred to by this URL.URLConnectionURL. openConnection(Proxy proxy)Returns a new connection to the resource referred to by this URL.protected abstract URLConnectionURLStreamHandler. openConnection(URL u)Establishes a new connection to the resource specified by the URLu.protected URLConnectionURLStreamHandler. openConnection(URL u, Proxy proxy)Establishes a new connection to the resource specified by the URLuusing the givenproxy.InputStreamURL. openStream()Equivalent toopenConnection().getInputStream(types).protected abstract intDatagramSocketImpl. peek(InetAddress sender)Peeks at the incoming packet to this socket and returns the address of thesender.protected intPlainDatagramSocketImpl. peek(InetAddress sender)protected abstract intDatagramSocketImpl. peekData(DatagramPacket pack)Receives data into the supplied datagram packet by peeking.intPlainDatagramSocketImpl. peekData(DatagramPacket pack)abstract voidCookieHandler. put(URI uri, Map<String,List<String>> responseHeaders)Sets all cookies of a specific URI in theresponseHeadersinto the cookie cache.voidCookieManager. put(URI uri, Map<String,List<String>> responseHeaders)Sets cookies according to uri and responseHeadersabstract CacheRequestResponseCache. put(URI uri, URLConnection connection)Allows the protocol handler to cache data after retrieving resources.voidDatagramSocket. receive(DatagramPacket pack)Receives a packet from this socket and stores it in the argumentpack.protected abstract voidDatagramSocketImpl. receive(DatagramPacket pack)Receives data and stores it in the supplied datagram packetpack.voidPlainDatagramSocketImpl. receive(DatagramPacket pack)voidDatagramSocket. send(DatagramPacket pack)Sends a packet over this socket.protected abstract voidDatagramSocketImpl. send(DatagramPacket pack)Sends the given datagram packetpack.voidMulticastSocket. send(DatagramPacket packet, byte ttl)Deprecated.UseMulticastSocket.setTimeToLive(int)instead.voidPlainDatagramSocketImpl. send(DatagramPacket packet)protected voidPlainSocketImpl. sendUrgentData(int value)voidSocket. sendUrgentData(int value)Sends the given single byte data which is represented by the lowest octet ofvalueas "TCP urgent data".protected abstract voidSocketImpl. sendUrgentData(int value)Sends the single byte of urgent data on the socket.static voidDatagramSocket. setDatagramSocketImplFactory(DatagramSocketImplFactory fac)Sets the socket implementation factory.static voidServerSocket. setSocketFactory(SocketImplFactory aFactory)Sets the server socket implementation factory of this instance.static voidSocket. setSocketImplFactory(SocketImplFactory fac)Sets the internal factory for creating socket implementations.protected abstract voidDatagramSocketImpl. setTimeToLive(int ttl)Sets the time-to-live (TTL) option for multicast packets sent on this socket.voidMulticastSocket. setTimeToLive(int ttl)Sets the time-to-live (TTL) for multicast packets sent on this socket.voidPlainDatagramSocketImpl. setTimeToLive(int ttl)protected abstract voidDatagramSocketImpl. setTTL(byte ttl)Deprecated.UseDatagramSocketImpl.setTimeToLive(int)instead.voidMulticastSocket. setTTL(byte ttl)Deprecated.UseMulticastSocket.setTimeToLive(int)instead.voidPlainDatagramSocketImpl. setTTL(byte ttl)protected voidPlainSocketImpl. shutdownInput()Shutdown the input portion of the socket.voidSocket. shutdownInput()Closes the input stream of this socket.protected voidSocketImpl. shutdownInput()Closes the input channel of this socket.protected voidPlainSocketImpl. shutdownOutput()Shutdown the output portion of the socket.voidSocket. shutdownOutput()Closes the output stream of this socket.protected voidSocketImpl. shutdownOutput()Closes the output channel of this socket.voidPlainSocketImpl. socksAccept()Perform an accept for a SOCKS bind.Constructors in java.net that throw IOException Constructor Description MulticastSocket()Constructs a multicast socket, bound to any available port on the local host.MulticastSocket(int port)Constructs a multicast socket, bound to the specifiedporton the local host.MulticastSocket(SocketAddress localAddress)Constructs aMulticastSocketbound to the address and port specified bylocalAddress, or an unboundMulticastSocketiflocalAddress == null.ServerSocket()Constructs a new unboundServerSocket.ServerSocket(int port)Constructs a newServerSocketinstance bound to the givenport.ServerSocket(int port, int backlog)Constructs a newServerSocketinstance bound to the givenport.ServerSocket(int port, int backlog, InetAddress localAddress)Constructs a newServerSocketinstance bound to the givenlocalAddressandport.Socket(String dstName, int dstPort)Creates a new streaming socket connected to the target host specified by the parametersdstNameanddstPort.Socket(String hostName, int port, boolean streaming)Deprecated.UseSocket(String, int)instead of this for streaming sockets or an appropriate constructor ofDatagramSocketfor UDP transport.Socket(String dstName, int dstPort, InetAddress localAddress, int localPort)Creates a new streaming socket connected to the target host specified by the parametersdstNameanddstPort.Socket(InetAddress dstAddress, int dstPort)Creates a new streaming socket connected to the target host specified by the parametersdstAddressanddstPort.Socket(InetAddress addr, int port, boolean streaming)Deprecated.UseSocket(InetAddress, int)instead of this for streaming sockets or an appropriate constructor ofDatagramSocketfor UDP transport.Socket(InetAddress dstAddress, int dstPort, InetAddress localAddress, int localPort)Creates a new streaming socket connected to the target host specified by the parametersdstAddressanddstPort. -
Uses of IOException in java.nio
Methods in java.nio that throw IOException Modifier and Type Method Description DatagramChannelSelectorProviderImpl. openDatagramChannel()PipeSelectorProviderImpl. openPipe()AbstractSelectorSelectorProviderImpl. openSelector()ServerSocketChannelSelectorProviderImpl. openServerSocketChannel()SocketChannelSelectorProviderImpl. openSocketChannel()intCharBuffer. read(CharBuffer target)Reads characters from this buffer and puts them intotarget. -
Uses of IOException in java.nio.channels
Subclasses of IOException in java.nio.channels Modifier and Type Class Description classAsynchronousCloseExceptionAnAsynchronousCloseExceptionis thrown when the underlying channel for an I/O operation is closed by another thread.classClosedByInterruptExceptionAClosedByInterruptExceptionis thrown when a thread is interrupted in a blocking I/O operation.classClosedChannelExceptionAClosedChannelExceptionis thrown when a channel is closed for the type of operation attempted.classFileLockInterruptionExceptionAFileLockInterruptionExceptionis thrown when a thread is interrupted while waiting to acquire a file lock.Methods in java.nio.channels that throw IOException Modifier and Type Method Description abstract SocketChannelServerSocketChannel. accept()Accepts a connection to this server-socket channel.voidChannel. close()Closes an open channel.voidFileLock. close()CallsFileLock.release()forAutoCloseable.voidInterruptibleChannel. close()Closes the channel.abstract voidSelector. close()Closes this selector.abstract SelectableChannelSelectableChannel. configureBlocking(boolean block)Sets the blocking mode of this channel.abstract DatagramChannelDatagramChannel. connect(SocketAddress address)Connects the socket of this channel to a remote address, which is the only communication peer for getting and sending datagrams after being connected.abstract booleanSocketChannel. connect(SocketAddress address)Connects this channel's socket with a remote address.abstract DatagramChannelDatagramChannel. disconnect()Disconnects the socket of this channel, which has been connected before in order to send and receive datagrams.abstract booleanSocketChannel. finishConnect()Completes the connection process initiated by a call ofconnect(SocketAddress).abstract voidFileChannel. force(boolean metadata)Requests that all updates to this channel are committed to the storage device.FileLockFileChannel. lock()Obtains an exclusive lock on this file.abstract FileLockFileChannel. lock(long position, long size, boolean shared)Obtains a lock on a specified region of the file.abstract MappedByteBufferFileChannel. map(FileChannel.MapMode mode, long position, long size)Maps the file into memory.static DatagramChannelDatagramChannel. open()Creates an opened and not-connected datagram channel.static PipePipe. open()Returns a new pipe from the default {@see java.nio.channels.spi.SelectorProvider}.static SelectorSelector. open()Returns a selector returned bySelectorProvider.provider'sSelectorProvider.openSelector()method.static ServerSocketChannelServerSocketChannel. open()Creates an open and unbound server-socket channel.static SocketChannelSocketChannel. open()Creates an open and unconnected socket channel.static SocketChannelSocketChannel. open(SocketAddress address)Creates a socket channel and connects it to a socket address.abstract longFileChannel. position()Returns the current value of the file position pointer.abstract FileChannelFileChannel. position(long offset)Sets the file position pointer to a new value.abstract intDatagramChannel. read(ByteBuffer target)Reads a datagram from this channel into the byte buffer.longDatagramChannel. read(ByteBuffer[] targets)Reads a datagram from this channel into an array of byte buffers.abstract longDatagramChannel. read(ByteBuffer[] targets, int offset, int length)Reads a datagram from this channel into an array of byte buffers.abstract intFileChannel. read(ByteBuffer buffer)Reads bytes from this file channel into the given buffer.longFileChannel. read(ByteBuffer[] buffers)Reads bytes from this file channel and stores them in the specified array of buffers.abstract longFileChannel. read(ByteBuffer[] buffers, int start, int number)Reads bytes from this file channel into a subset of the given buffers.abstract intFileChannel. read(ByteBuffer buffer, long position)Reads bytes from this file channel into the given buffer starting from the specified file position.intReadableByteChannel. read(ByteBuffer buffer)Reads bytes from the channel into the given buffer.longScatteringByteChannel. read(ByteBuffer[] buffers)Reads bytes from this channel into the specified array of buffers.longScatteringByteChannel. read(ByteBuffer[] buffers, int offset, int length)Attempts to read allremaining()bytes fromlengthbyte buffers, in order, starting atbuffers[offset].abstract intSocketChannel. read(ByteBuffer target)Reads bytes from this socket channel into the given buffer.longSocketChannel. read(ByteBuffer[] targets)Reads bytes from this socket channel and stores them in the specified array of buffers.abstract longSocketChannel. read(ByteBuffer[] targets, int offset, int length)Reads bytes from this socket channel into a subset of the given buffers.abstract SocketAddressDatagramChannel. receive(ByteBuffer target)Gets a datagram from this channel.abstract voidFileLock. release()Releases this particular lock on the file.abstract intSelector. select()Detects if any of the registered channels is ready for I/O operations according to itsinterest set.abstract intSelector. select(long timeout)Detects if any of the registered channels is ready for I/O operations according to itsinterest set.abstract intSelector. selectNow()Detects if any of the registered channels is ready for I/O operations according to itsinterest set.abstract intDatagramChannel. send(ByteBuffer source, SocketAddress address)Sends a datagram through this channel.abstract longFileChannel. size()Returns the size of the file underlying this channel in bytes.abstract longFileChannel. transferFrom(ReadableByteChannel src, long position, long count)Reads up tocountbytes fromsrcand stores them in this channel's file starting atposition.abstract longFileChannel. transferTo(long position, long count, WritableByteChannel target)Reads up tocountbytes from this channel's file starting atpositionand writes them totarget.abstract FileChannelFileChannel. truncate(long size)Truncates the file underlying this channel to a given size.FileLockFileChannel. tryLock()Attempts to acquire an exclusive lock on this file without blocking.abstract FileLockFileChannel. tryLock(long position, long size, boolean shared)Attempts to acquire an exclusive lock on this file without blocking.abstract intDatagramChannel. write(ByteBuffer source)Writes a datagram from the byte buffer to this channel.longDatagramChannel. write(ByteBuffer[] sources)Writes a datagram from the byte buffers to this channel.abstract longDatagramChannel. write(ByteBuffer[] sources, int offset, int length)Writes a datagram from the byte buffers to this channel.abstract intFileChannel. write(ByteBuffer src)Writes bytes from the given byte buffer to this file channel.longFileChannel. write(ByteBuffer[] buffers)Writes bytes from all the given byte buffers to this file channel.abstract longFileChannel. write(ByteBuffer[] buffers, int offset, int length)Attempts to write a subset of the given bytes from the buffers to this file channel.abstract intFileChannel. write(ByteBuffer buffer, long position)Writes bytes from the given buffer to this file channel starting at the given file position.longGatheringByteChannel. write(ByteBuffer[] buffers)Writes bytes from all the given buffers to a channel.longGatheringByteChannel. write(ByteBuffer[] buffers, int offset, int length)Attempts to write allremaining()bytes fromlengthbyte buffers, in order, starting atbuffers[offset].abstract intSocketChannel. write(ByteBuffer source)Writes bytes from the given byte buffer to this socket channel.longSocketChannel. write(ByteBuffer[] sources)Writes bytes from all the given byte buffers to this socket channel.abstract longSocketChannel. write(ByteBuffer[] sources, int offset, int length)Attempts to write a subset of the given bytes from the buffers to this socket channel.intWritableByteChannel. write(ByteBuffer buffer)Writes bytes from the given buffer to the channel. -
Uses of IOException in java.nio.channels.spi
Methods in java.nio.channels.spi that throw IOException Modifier and Type Method Description voidAbstractInterruptibleChannel. close()Closes an open channel.voidAbstractSelector. close()Closes this selector.SelectableChannelAbstractSelectableChannel. configureBlocking(boolean blockingMode)Sets the blocking mode of this channel.protected abstract voidAbstractInterruptibleChannel. implCloseChannel()Implements the channel closing behavior.protected voidAbstractSelectableChannel. implCloseChannel()Implements the channel closing behavior.protected abstract voidAbstractSelectableChannel. implCloseSelectableChannel()Implements the closing function of the SelectableChannel.protected abstract voidAbstractSelector. implCloseSelector()Implements the closing of this channel.protected abstract voidAbstractSelectableChannel. implConfigureBlocking(boolean blocking)Implements the configuration of blocking/non-blocking mode.ChannelSelectorProvider. inheritedChannel()Returns the channel inherited from the process that created this VM.abstract DatagramChannelSelectorProvider. openDatagramChannel()Creates a new openDatagramChannel.abstract PipeSelectorProvider. openPipe()Creates a newPipe.abstract AbstractSelectorSelectorProvider. openSelector()Creates a new selector.abstract ServerSocketChannelSelectorProvider. openServerSocketChannel()Creates a new openServerSocketChannel.abstract SocketChannelSelectorProvider. openSocketChannel()Create a new openSocketChannel. -
Uses of IOException in java.nio.charset
Subclasses of IOException in java.nio.charset Modifier and Type Class Description classCharacterCodingExceptionACharacterCodingExceptionis thrown when an encoding or decoding error occurs.classMalformedInputExceptionAMalformedInputExceptionis thrown when a malformed input is encountered, for example if a byte sequence is illegal for the given charset.classUnmappableCharacterExceptionAnUnmappableCharacterExceptionis thrown when an unmappable character for the given charset is encountered. -
Uses of IOException in java.security
Methods in java.security that throw IOException Modifier and Type Method Description voidCertificate. decode(InputStream stream)Deprecated.Decodes a certificate from the givenInputStream.voidCertificate. encode(OutputStream stream)Deprecated.Encodes this certificate to an output stream.protected abstract byte[]AlgorithmParametersSpi. engineGetEncoded()Returns the parameters in their default encoding format.protected abstract byte[]AlgorithmParametersSpi. engineGetEncoded(String format)Returns the parameters in the specified encoding format.protected abstract voidAlgorithmParametersSpi. engineInit(byte[] params)Initializes thisAlgorithmParametersSpiwith the specifiedbyte[]using the default decoding format for parameters.protected abstract voidAlgorithmParametersSpi. engineInit(byte[] params, String format)Initializes thisAlgorithmParametersSpiwith the specifiedbyte[]using the specified decoding format.abstract voidKeyStoreSpi. engineLoad(InputStream stream, char[] password)Loads thisKeyStoreSpifrom the givenInputStream.voidKeyStoreSpi. engineLoad(KeyStore.LoadStoreParameter param)Loads thisKeyStoreSpiusing the specifiedLoadStoreParameter.abstract voidKeyStoreSpi. engineStore(OutputStream stream, char[] password)Writes thisKeyStoreSpito the specifiedOutputStream.voidKeyStoreSpi. engineStore(KeyStore.LoadStoreParameter param)Stores thisKeyStoreSpiusing the specifiedLoadStoreParameter.byte[]AlgorithmParameters. getEncoded()Returns thisAlgorithmParametersin their default encoding format.byte[]AlgorithmParameters. getEncoded(String format)Returns thisAlgorithmParametersin the specified encoding format.ObjectSignedObject. getObject()Returns the encapsulated object.voidAlgorithmParameters. init(byte[] params)Initializes thisAlgorithmParameterswith the specifiedbyte[]using the default decoding format for parameters.voidAlgorithmParameters. init(byte[] params, String format)Initializes thisAlgorithmParameterswith the specifiedbyte[]using the specified decoding format.voidKeyStore. load(InputStream stream, char[] password)Initializes thisKeyStorefrom the providedInputStream.voidKeyStore. load(KeyStore.LoadStoreParameter param)Loads thisKeyStoreusing the specifiedLoadStoreParameter.voidProvider. load(InputStream inStream)intDigestInputStream. read()Reads the next byte and returns it as anint.intDigestInputStream. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountbytes intobuffer, starting atbyteOffset.voidKeyStore. store(OutputStream stream, char[] password)Writes thisKeyStoreto the specifiedOutputStream.voidKeyStore. store(KeyStore.LoadStoreParameter param)Stores thisKeyStoreusing the specifiedLoadStoreParameter.voidDigestOutputStream. write(byte[] b, int off, int len)Writeslenbytes into the stream, starting from the specified offset.voidDigestOutputStream. write(int b)Writes the specifiedintto the stream.Constructors in java.security that throw IOException Constructor Description SignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine)Constructs a new instance ofSignedObjectwith the target object, the private key and the engine to compute the signature. -
Uses of IOException in java.security.cert
Methods in java.security.cert that throw IOException Modifier and Type Method Description voidX509CRLSelector. addIssuerName(byte[] iss_name)Adds an issuer to the criterion for the issuer distinguished names.voidX509CRLSelector. addIssuerName(String iss_name)Do not use:, useX509CRLSelector.addIssuer(X500Principal)orX509CRLSelector.addIssuerName(byte[])instead.voidX509CertSelector. addPathToName(int type, byte[] name)Adds a "pathToName" to the respective criterion.voidX509CertSelector. addPathToName(int type, String name)Adds a "pathToName" to the respective criterion.voidX509CertSelector. addSubjectAlternativeName(int tag, byte[] name)Adds a subject alternative name to the respective criterion.voidX509CertSelector. addSubjectAlternativeName(int tag, String name)Adds a subject alternative name to the respective criterion.byte[]X509CertSelector. getIssuerAsBytes()Returns the issuer that a certificate must match.byte[]X509CertSelector. getSubjectAsBytes()Returns the subject that a certificate must match.voidX509CertSelector. setExtendedKeyUsage(Set<String> keyUsage)Sets the criterion for the ExtendedKeyUsage extension.voidX509CertSelector. setIssuer(byte[] issuerDN)Sets the issuer that a certificate must match.voidX509CertSelector. setIssuer(String issuerName)Do not use, useX509CertSelector.getIssuer()orX509CertSelector.getIssuerAsBytes()instead.voidX509CRLSelector. setIssuerNames(Collection<?> names)Do not use: useX509CRLSelector.setIssuers(Collection)or one ofX509CRLSelector.addIssuerName(java.lang.String)instead.voidX509CertSelector. setNameConstraints(byte[] bytes)Sets the criterion for the name constraints.voidX509CertSelector. setPathToNames(Collection<List<?>> names)Sets the criterion for the pathToNames constraint.voidX509CertSelector. setPolicy(Set<String> policies)Sets the criterion for the policy constraint.voidX509CertSelector. setSubject(byte[] subjectDN)Sets the subject that a certificate must match.voidX509CertSelector. setSubject(String subjectDN)Do not use, useX509CertSelector.setSubject(byte[])orX509CertSelector.setSubject(X500Principal)instead.voidX509CertSelector. setSubjectAlternativeNames(Collection<List<?>> names)Sets the criterion for subject alternative names.voidX509CertSelector. setSubjectPublicKey(byte[] key)Sets the criterion for the subject public key.voidX509CertSelector. setSubjectPublicKeyAlgID(String oid)Sets the criterion for the subject public key signature algorithm.Constructors in java.security.cert that throw IOException Constructor Description PolicyQualifierInfo(byte[] encoded)Creates a newPolicyQualifierInfofrom the specified encoded form. -
Uses of IOException in java.util
Subclasses of IOException in java.util Modifier and Type Class Description classInvalidPropertiesFormatExceptionAnInvalidPropertiesFormatExceptionis thrown if loading the XML document defining the properties does not follow thePropertiesspecification.Methods in java.util that return IOException Modifier and Type Method Description IOExceptionFormatter. ioException()Returns the lastIOExceptionthrown by theFormatter's output destination.IOExceptionScanner. ioException()Returns the lastIOExceptionthat was raised while reading from the underlying input, ornullif none was thrown.Methods in java.util that throw IOException Modifier and Type Method Description voidProperties. load(InputStream in)Loads properties from the specifiedInputStream, assumed to be ISO-8859-1.voidProperties. load(Reader in)Loads properties from the specifiedReader.voidProperties. loadFromXML(InputStream in)Loads the properties from anInputStreamcontaining the properties in XML form.ResourceBundleResourceBundle.Control. newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)Returns a new ResourceBundle.voidProperties. store(OutputStream out, String comment)Stores properties to the specifiedOutputStream, using ISO-8859-1.voidProperties. store(Writer writer, String comment)Stores the mappings in thisPropertiesobject toout, putting the specified comment at the beginning.voidProperties. storeToXML(OutputStream os, String comment)Writes all properties stored in this instance into theOutputStreamin XML representation.voidProperties. storeToXML(OutputStream os, String comment, String encoding)Writes all properties stored in this instance into theOutputStreamin XML representation.Constructors in java.util that throw IOException Constructor Description PropertyResourceBundle(InputStream stream)Constructs a new instance ofPropertyResourceBundleand loads the properties file from the specifiedInputStream.PropertyResourceBundle(Reader reader)Constructs a new resource bundle with properties read fromreader. -
Uses of IOException in java.util.jar
Subclasses of IOException in java.util.jar Modifier and Type Class Description classJarExceptionThis runtime exception is thrown when a problem occurs while reading a JAR file.Methods in java.util.jar that throw IOException Modifier and Type Method Description voidJarFile. close()Closes thisJarFile.AttributesJarEntry. getAttributes()Returns theAttributesobject associated with this entry ornullif none exists.InputStreamJarFile. getInputStream(ZipEntry ze)Return anInputStreamfor reading the decompressed contents of ZIP entry.ManifestJarFile. getManifest()Returns theManifestobject associated with thisJarFileornullif no MANIFEST entry exists.ZipEntryJarInputStream. getNextEntry()Returns the nextZipEntrycontained in this stream ornullif no more entries are present.JarEntryJarInputStream. getNextJarEntry()Returns the nextJarEntrycontained in this stream ornullif no more entries are present.voidPack200.Packer. pack(JarFile in, OutputStream out)Pack the specified JAR file to the specified output stream.voidPack200.Packer. pack(JarInputStream in, OutputStream out)Pack the data from the specified jar input stream to the specified output stream.voidJarOutputStream. putNextEntry(ZipEntry ze)Writes the specified ZIP entry to the underlying stream.intJarInputStream. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountbytes of decompressed data and stores it inbufferstarting atbyteOffset.voidManifest. read(InputStream is)Merges name/attribute pairs read from the input streamisinto this manifest.voidPack200.Unpacker. unpack(File in, JarOutputStream out)Unpack the contents of the specifiedFileto the specified JAR output stream.voidPack200.Unpacker. unpack(InputStream in, JarOutputStream out)Unpack the specified stream to the specified JAR output stream.voidManifest. write(OutputStream os)Writes thisManifest's name/attributes pairs to the givenOutputStream.Constructors in java.util.jar that throw IOException Constructor Description JarFile(File file)Create a newJarFileusing the contents of the specified file.JarFile(File file, boolean verify)Create a newJarFileusing the contents of the specified file.JarFile(File file, boolean verify, int mode)Create a newJarFileusing the contents of file.JarFile(String filename)Create a newJarFilefrom the contents of the file specified by filename.JarFile(String filename, boolean verify)Create a newJarFilefrom the contents of the file specified byfilename.JarInputStream(InputStream stream)Constructs a newJarInputStreamfrom an input stream.JarInputStream(InputStream stream, boolean verify)Constructs a newJarInputStreamfrom an input stream.JarOutputStream(OutputStream os)Constructs a newJarOutputStreamusing an arbitrary output stream.JarOutputStream(OutputStream os, Manifest manifest)Constructs a newJarOutputStreamusing an output stream.Manifest(InputStream is)Creates a newManifestinstance using the attributes obtained from the input stream. -
Uses of IOException in java.util.logging
Methods in java.util.logging that throw IOException Modifier and Type Method Description voidLogManager. readConfiguration()Re-initialize the properties and configuration.voidLogManager. readConfiguration(InputStream ins)Re-initialize the properties and configuration from the givenInputStreamConstructors in java.util.logging that throw IOException Constructor Description FileHandler()Construct aFileHandlerusingLogManagerproperties or their default value.FileHandler(String pattern)Constructs a newFileHandler.FileHandler(String pattern, boolean append)Construct a newFileHandler.FileHandler(String pattern, int limit, int count)Construct a newFileHandler.FileHandler(String pattern, int limit, int count, boolean append)Construct a newFileHandler.SocketHandler()Constructs aSocketHandlerobject using the properties read by the log manager, including the host name and port number.SocketHandler(String host, int port)Constructs aSocketHandlerobject using the specified host name and port number together with other properties read by the log manager. -
Uses of IOException in java.util.prefs
Methods in java.util.prefs that throw IOException Modifier and Type Method Description voidAbstractPreferences. exportNode(OutputStream ostream)abstract voidPreferences. exportNode(OutputStream ostream)Exports all of the preferences of this node to a XML document using the given output stream.voidAbstractPreferences. exportSubtree(OutputStream ostream)abstract voidPreferences. exportSubtree(OutputStream ostream)Exports all of the preferences of this node and all its descendants to a XML document using the given output stream.static voidPreferences. importPreferences(InputStream istream)Imports all the preferences from an XML document using the given input stream. -
Uses of IOException in java.util.zip
Subclasses of IOException in java.util.zip Modifier and Type Class Description classZipExceptionThis runtime exception is thrown byZipFileandZipInputStreamwhen the file or stream is not a valid zip file.Methods in java.util.zip that throw IOException Modifier and Type Method Description intDeflaterInputStream. available()Returns 0 when when this stream has exhausted its input; and 1 otherwise.intInflaterInputStream. available()Returns 0 when when this stream has exhausted its input; and 1 otherwise.intZipInputStream. available()voidDeflaterInputStream. close()Closes the underlying input stream and discards any remaining uncompressed data.voidDeflaterOutputStream. close()Writes any unwritten compressed data to the underlying stream, the closes all underlying streams.voidGZIPInputStream. close()Closes this stream and any underlying streams.voidInflaterInputStream. close()Closes the input stream.voidInflaterOutputStream. close()Writes remaining data into the output stream and closes the underlying output stream.voidZipFile. close()Closes this zip file.voidZipInputStream. close()Closes thisZipInputStream.voidZipOutputStream. close()Closes the currentZipEntry, if any, and the underlying output stream.voidZipInputStream. closeEntry()Closes the current zip entry and prepares to read the next entry.voidZipOutputStream. closeEntry()Closes the currentZipEntry.protected voidDeflaterOutputStream. deflate()Compress the data in the input buffer and write it to the underlying stream.protected voidInflaterInputStream. fill()Fills the input buffer with data to be decompressed.protected voidZipFile. finalize()voidDeflaterOutputStream. finish()Writes any unwritten data to the underlying stream.voidGZIPOutputStream. finish()Indicates to the stream that all data has been written out, and any GZIP terminal data can now be written.voidInflaterOutputStream. finish()Finishes writing current uncompressed data into the InflaterOutputStream without closing it.voidZipOutputStream. finish()Indicates that all entries have been written to the stream.voidDeflaterOutputStream. flush()Flushes the underlying stream.voidInflaterOutputStream. flush()InputStreamZipFile. getInputStream(ZipEntry entry)Returns an input stream on the data of the specifiedZipEntry.ZipEntryZipInputStream. getNextEntry()Returns the next entry from thisZipInputStreamornullif no more entries are present.voidZipOutputStream. putNextEntry(ZipEntry ze)Writes entry information to the underlying stream.intCheckedInputStream. read()Reads one byte of data from the underlying input stream and updates the checksum with the byte data.intCheckedInputStream. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountbytes of data from the underlying input stream, storing it intobuffer, starting at offsetbyteOffset.intDeflaterInputStream. read()Reads a byte from the compressed input stream.intDeflaterInputStream. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountbytes of compressed data into a byte buffer.intGZIPInputStream. read(byte[] buffer, int byteOffset, int byteCount)intInflaterInputStream. read()Reads a single byte of decompressed data.intInflaterInputStream. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountbytes of decompressed data and stores it inbufferstarting atbyteOffset.intZipInputStream. read(byte[] buffer, int byteOffset, int byteCount)Reads up tobyteCountuncompressed bytes into the buffer starting atbyteOffset.voidDeflaterInputStream. reset()This operation is not supported and throwsIOException.voidInflaterInputStream. reset()Reset the position of the stream to the last marked position.longCheckedInputStream. skip(long byteCount)Skip up tobyteCountbytes of data on the underlying input stream.longDeflaterInputStream. skip(long byteCount)SkipsbyteCountbytes in this stream.longInflaterInputStream. skip(long byteCount)Skips up tobyteCountbytes of uncompressed data.voidCheckedOutputStream. write(byte[] buf, int off, int nbytes)Writes n bytes of data frombufstarting at offsetoffto the underlying stream.voidCheckedOutputStream. write(int val)Writes the specified byte to the underlying stream.voidDeflaterOutputStream. write(byte[] buffer, int offset, int byteCount)CompressesbyteCountbytes of data frombufstarting atoffsetand writes it to the underlying stream.voidDeflaterOutputStream. write(int i)voidGZIPOutputStream. write(byte[] buffer, int off, int nbytes)Write up to nbytes of data from the given buffer, starting at offset off, to the underlying stream in GZIP format.voidInflaterOutputStream. write(byte[] bytes, int offset, int byteCount)Writes to the decompressing output stream.voidInflaterOutputStream. write(int b)Writes a byte to the decompressing output stream.voidZipOutputStream. write(byte[] buffer, int offset, int byteCount)Writes data for the current entry to the underlying stream.Constructors in java.util.zip that throw IOException Constructor Description GZIPInputStream(InputStream is)Construct aGZIPInputStreamto read from GZIP data from the underlying stream.GZIPInputStream(InputStream is, int size)Construct aGZIPInputStreamto read from GZIP data from the underlying stream.GZIPOutputStream(OutputStream os)Constructs a newGZIPOutputStreamto write data in GZIP format to the given stream.GZIPOutputStream(OutputStream os, boolean syncFlush)Constructs a newGZIPOutputStreamto write data in GZIP format to the given stream with the given flushing behavior (seeDeflaterOutputStream.flush()).GZIPOutputStream(OutputStream os, int bufferSize)Constructs a newGZIPOutputStreamto write data in GZIP format to the given stream with the given internal buffer size and flushing behavior (seeDeflaterOutputStream.flush()).GZIPOutputStream(OutputStream os, int bufferSize, boolean syncFlush)Constructs a newGZIPOutputStreamto write data in GZIP format to the given stream with the given internal buffer size and flushing behavior (seeDeflaterOutputStream.flush()).ZipFile(File file)Constructs a newZipFileallowing read access to the contents of the given file.ZipFile(File file, int mode)Constructs a newZipFileallowing access to the given file.ZipFile(String name)Constructs a newZipFileallowing read access to the contents of the given file. -
Uses of IOException in javax.crypto
Methods in javax.crypto that throw IOException Modifier and Type Method Description intCipherInputStream. available()voidCipherInputStream. close()Closes thisCipherInputStream, also closes the underlying input stream and calldoFinalon the cipher object.voidCipherOutputStream. close()Close this cipher output stream.voidCipherOutputStream. flush()Flushes this cipher output stream.byte[]EncryptedPrivateKeyInfo. getEncoded()Returns the ASN.1 encoded representation of this object.ObjectSealedObject. getObject(Key key)Returns the wrapped object, decrypting it using the specified key.ObjectSealedObject. getObject(Key key, String provider)Returns the wrapped object, decrypting it using the specified key.ObjectSealedObject. getObject(Cipher c)Returns the wrapped object, decrypting it using the specified cipher.intCipherInputStream. read()Reads the next byte from this cipher input stream.intCipherInputStream. read(byte[] buf, int off, int len)Reads the nextlenbytes from this input stream into bufferbufstarting at offsetoff.longCipherInputStream. skip(long byteCount)voidCipherOutputStream. write(byte[] b, int off, int len)Writes thelenbytes from bufferbstarting at offsetoffto this cipher output stream.voidCipherOutputStream. write(int b)Writes the single byte to this cipher output stream.Constructors in javax.crypto that throw IOException Constructor Description EncryptedPrivateKeyInfo(byte[] encoded)Creates anEncryptedPrivateKeyInfoinstance from its encoded representation by parsing it.SealedObject(Serializable object, Cipher c)Creates a newSealedObjectinstance wrapping the specified object and sealing it using the specified cipher. -
Uses of IOException in javax.net
Methods in javax.net that throw IOException Modifier and Type Method Description ServerSocketServerSocketFactory. createServerSocket()Creates a new server socket which is not bound to any local address.abstract ServerSocketServerSocketFactory. createServerSocket(int port)Creates a new server socket which is bound to the given port with a maximum backlog of 50 unaccepted connections.abstract ServerSocketServerSocketFactory. createServerSocket(int port, int backlog)Creates a new server socket which is bound to the given port and configures its maximum of queued connections.abstract ServerSocketServerSocketFactory. createServerSocket(int port, int backlog, InetAddress iAddress)Creates a new server socket which is bound to the given address on the specified port and configures its maximum of queued connections.SocketSocketFactory. createSocket()Creates a new socket which is not connected to any remote host.abstract SocketSocketFactory. createSocket(String host, int port)Creates a new socket which is connected to the remote host specified by the parametershostandport.abstract SocketSocketFactory. createSocket(String host, int port, InetAddress localHost, int localPort)Creates a new socket which is connected to the remote host specified by the parametershostandport.abstract SocketSocketFactory. createSocket(InetAddress host, int port)Creates a new socket which is connected to the remote host specified by the InetAddresshost.abstract SocketSocketFactory. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)Creates a new socket which is connected to the remote host specified by the InetAddressaddress. -
Uses of IOException in javax.net.ssl
Subclasses of IOException in javax.net.ssl Modifier and Type Class Description classSSLExceptionThe base class for all SSL related exceptions.classSSLHandshakeExceptionThe exception that is thrown when a handshake could not be completed successfully.classSSLKeyExceptionThe exception that is thrown when an invalid SSL key is encountered.classSSLPeerUnverifiedExceptionThe exception that is thrown when the identity of a peer has not been verified.classSSLProtocolExceptionThe exception that is thrown when an error in the operation of the SSL protocol is encountered.Methods in javax.net.ssl that throw IOException Modifier and Type Method Description abstract SocketSSLSocketFactory. createSocket(Socket s, String host, int port, boolean autoClose)Creates anSSLSocketover the specified socket that is connected to the specified host at the specified port.voidSSLSocket. shutdownInput()Unsupported for SSL because reading from an SSL socket may require writing to the network.voidSSLSocket. shutdownOutput()Unsupported for SSL because writing to an SSL socket may require reading from the network.abstract voidSSLSocket. startHandshake()Starts a new SSL handshake on this connection.Constructors in javax.net.ssl that throw IOException Constructor Description SSLServerSocket()Only to be used by subclasses.SSLServerSocket(int port)Only to be used by subclasses.SSLServerSocket(int port, int backlog)Only to be used by subclasses.SSLServerSocket(int port, int backlog, InetAddress address)Only to be used by subclasses.SSLSocket(String host, int port)Only to be used by subclasses.SSLSocket(String host, int port, InetAddress clientAddress, int clientPort)Only to be used by subclasses.SSLSocket(InetAddress address, int port)Only to be used by subclasses.SSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort)Only to be used by subclasses. -
Uses of IOException in javax.security.auth.callback
Methods in javax.security.auth.callback that throw IOException Modifier and Type Method Description voidCallbackHandler. handle(Callback[] callbacks)Handles the actualCallback. -
Uses of IOException in javax.xml.parsers
Methods in javax.xml.parsers that throw IOException Modifier and Type Method Description DocumentDocumentBuilder. parse(File f)Parse the content of the given file as an XML document and return a new DOMDocumentobject.DocumentDocumentBuilder. parse(InputStream is)Parse the content of the givenInputStreamas an XML document and return a new DOMDocumentobject.DocumentDocumentBuilder. parse(InputStream is, String systemId)Parse the content of the givenInputStreamas an XML document and return a new DOMDocumentobject.DocumentDocumentBuilder. parse(String uri)Parse the content of the given URI as an XML document and return a new DOMDocumentobject.abstract DocumentDocumentBuilder. parse(InputSource is)Parse the content of the given input source as an XML document and return a new DOMDocumentobject.voidSAXParser. parse(File f, HandlerBase hb)Parse the content of the file specified as XML using the specifiedHandlerBase.voidSAXParser. parse(File f, DefaultHandler dh)Parse the content of the file specified as XML using the specifiedDefaultHandler.voidSAXParser. parse(InputStream is, HandlerBase hb)Parse the content of the givenInputStreaminstance as XML using the specifiedHandlerBase.voidSAXParser. parse(InputStream is, HandlerBase hb, String systemId)Parse the content of the givenInputStreaminstance as XML using the specifiedHandlerBase.voidSAXParser. parse(InputStream is, DefaultHandler dh)Parse the content of the givenInputStreaminstance as XML using the specifiedDefaultHandler.voidSAXParser. parse(InputStream is, DefaultHandler dh, String systemId)Parse the content of the givenInputStreaminstance as XML using the specifiedDefaultHandler.voidSAXParser. parse(String uri, HandlerBase hb)Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specifiedHandlerBase.voidSAXParser. parse(String uri, DefaultHandler dh)Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specifiedDefaultHandler.voidSAXParser. parse(InputSource is, HandlerBase hb)Parse the content givenInputSourceas XML using the specifiedHandlerBase.voidSAXParser. parse(InputSource is, DefaultHandler dh)Parse the content givenInputSourceas XML using the specifiedDefaultHandler. -
Uses of IOException in javax.xml.validation
Methods in javax.xml.validation that throw IOException Modifier and Type Method Description voidValidator. validate(Source source)Validates the specified input.abstract voidValidator. validate(Source source, Result result)Validates the specified input and send the augmented validation result to the specified output. -
Uses of IOException in libcore.io
Methods in libcore.io that return IOException Modifier and Type Method Description IOExceptionErrnoException. rethrowAsIOException()Methods in libcore.io that throw IOException Modifier and Type Method Description static intIoBridge. available(FileDescriptor fd)static voidIoUtils. close(FileDescriptor fd)Calls close(2) on 'fd'.voidStrictLineReader. close()Closes the reader by closing the underlyingInputStreamand marking this reader as closed.static voidIoBridge. closeSocket(FileDescriptor fd)static intStreams. copy(InputStream in, OutputStream out)Copies all of the bytes fromintoout.static voidIoUtils. deleteContents(File dir)Deprecated.UseIoUtils.createTemporaryDirectory(java.lang.String)instead.static booleanIoBridge. isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs, int remainingTimeoutMs)static intIoBridge. read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount)java.io thinks that a read at EOF is an error and should return -1, contrary to traditional Unix practice where you'd read until you got 0 bytes (and any future read would return -1).static StringStreams. readAsciiLine(InputStream in)Returns the ASCII characters up to but not including the next "\r\n", or "\n".static byte[]IoUtils. readFileAsByteArray(String absolutePath)Returns the contents of 'path' as a byte array.static StringIoUtils. readFileAsString(String absolutePath)Returns the contents of 'path' as a string.static byte[]Streams. readFully(InputStream in)Returns a byte[] containing the remainder of 'in', closing it when done.static voidStreams. readFully(InputStream in, byte[] dst)Fills 'dst' with bytes from 'in', throwing EOFException if insufficient bytes are available.static voidStreams. readFully(InputStream in, byte[] dst, int offset, int byteCount)Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws EOFException if insufficient bytes are available.static StringStreams. readFully(Reader reader)Returns the remainder of 'reader' as a string, closing it when done.static byte[]Streams. readFullyNoClose(InputStream in)Returns a byte[] containing the remainder of 'in'.intStrictLineReader. readInt()Read anintfrom a line containing its decimal representation.StringStrictLineReader. readLine()Reads the next line.static intStreams. readSingleByte(InputStream in)Implements InputStream.read(int) in terms of InputStream.read(byte[], int, int).static intIoBridge. recvfrom(boolean isRead, FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, DatagramPacket packet, boolean isConnected)static intIoBridge. recvfrom(boolean isRead, FileDescriptor fd, ByteBuffer buffer, int flags, DatagramPacket packet, boolean isConnected)IOExceptionErrnoException. rethrowAsIOException()static intIoBridge. sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port)static intIoBridge. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)static voidIoUtils. setBlocking(FileDescriptor fd, boolean blocking)Sets 'fd' to be blocking or non-blocking, according to the state of 'blocking'.static voidStreams. skipAll(InputStream in)static longStreams. skipByReading(InputStream in, long byteCount)Callin.read()repeatedly until either the stream is exhausted orbyteCountbytes have been read.static voidIoBridge. write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount)java.io always writes every byte it's asked to, or fails with an error.static voidStreams. writeSingleByte(OutputStream out, int b)Implements OutputStream.write(int) in terms of OutputStream.write(byte[], int, int). -
Uses of IOException in libcore.net
Methods in libcore.net that throw IOException Modifier and Type Method Description voidRawSocket. close()Closes the socket. -
Uses of IOException in libcore.net.url
Methods in libcore.net.url that throw IOException Modifier and Type Method Description voidFileURLConnection. connect()This methods will attempt to obtain the input stream of the file pointed by thisURL.voidFtpURLConnection. connect()Establishes the connection to the resource specified by thisURLvoidJarURLConnectionImpl. connect()ObjectJarURLConnectionImpl. getContent()Returns the object pointed by thisURL.InputStreamFileURLConnection. getInputStream()Returns the input stream of the object referred to by thisURLConnectionFile Sample : "/ZIP211/+/harmony/tools/javac/resources/javac.properties" Invalid File Sample: "/ZIP/+/harmony/tools/javac/resources/javac.properties" "ZIP211/+/harmony/tools/javac/resources/javac.properties"InputStreamFtpURLConnection. getInputStream()Creates a input stream for writing to this URL Connection.InputStreamJarURLConnectionImpl. getInputStream()Creates an input stream for reading from this URL Connection.JarEntryJarURLConnectionImpl. getJarEntry()Returns the JarEntry of the entry referenced by thisURLConnection.JarFileJarURLConnectionImpl. getJarFile()Returns the Jar file referred by thisURLConnection.OutputStreamFtpURLConnection. getOutputStream()Creates a output stream for writing to this URL Connection.PermissionFileURLConnection. getPermission()Returns the permission, in this case the subclass, FilePermission object which represents the permission necessary for this URLConnection to establish the connection.PermissionFtpURLConnection. getPermission()Returns the permission object (in this case, SocketPermission) with the host and the port number as the target name and "resolve, connect" as the action list.PermissionJarURLConnectionImpl. getPermission()Returns the permission, in this case the subclass, FilePermission object which represents the permission necessary for this URLConnection to establish the connection.URLConnectionFileHandler. openConnection(URL url)Returns a connection to the a file pointed by thisURLin the file systemURLConnectionFileHandler. openConnection(URL url, Proxy proxy)The behavior of this method is the same as openConnection(URL).protected URLConnectionFtpHandler. openConnection(URL u)Open a URLConnection on the given URL.protected URLConnectionFtpHandler. openConnection(URL url, Proxy proxy)Returns a connection, which is established via theproxy, to the FTP server specified by thisURL.protected URLConnectionJarHandler. openConnection(URL u)Returns a connection to the jar file pointed by thisURLin the file systemConstructors in libcore.net.url that throw IOException Constructor Description JarURLConnectionImpl(URL url) -
Uses of IOException in libcore.util
Methods in libcore.util that throw IOException Modifier and Type Method Description abstract TimeZoneZoneInfoDB.TzData. makeTimeZone(String id)TimeZoneZoneInfoDB.TzDataAndroid. makeTimeZone(String id) -
Uses of IOException in org.apache.harmony.security.asn1
Subclasses of IOException in org.apache.harmony.security.asn1 Modifier and Type Class Description classASN1ExceptionThrown by decoder/encoder stream to indicate violation of encoding rules.Methods in org.apache.harmony.security.asn1 that throw IOException Modifier and Type Method Description ObjectASN1Any. decode(BerInputStream in)ObjectASN1BitString. decode(BerInputStream in)ObjectASN1Boolean. decode(BerInputStream in)ObjectASN1Choice. decode(BerInputStream in)ObjectASN1Enumerated. decode(BerInputStream in)ObjectASN1Explicit. decode(BerInputStream in)ObjectASN1GeneralizedTime. decode(BerInputStream in)ObjectASN1Implicit. decode(BerInputStream in)ObjectASN1Integer. decode(BerInputStream in)ObjectASN1OctetString. decode(BerInputStream in)ObjectASN1Oid. decode(BerInputStream in)ObjectASN1Sequence. decode(BerInputStream in)ObjectASN1SequenceOf. decode(BerInputStream in)ObjectASN1Set. decode(BerInputStream in)ObjectASN1SetOf. decode(BerInputStream in)ObjectASN1StringType. decode(BerInputStream in)ObjectASN1Type. decode(byte[] encoded)ObjectASN1Type. decode(byte[] encoded, int offset, int encodingLen)ObjectASN1Type. decode(InputStream in)abstract ObjectASN1Type. decode(BerInputStream in)Decodes ASN.1 type.ObjectASN1UTCTime. decode(BerInputStream in)ObjectASN1Any. getDecodedObject(BerInputStream in)Extracts array of bytes that represents full encoding from BER input stream.ObjectASN1BitString.ASN1NamedBitList. getDecodedObject(BerInputStream in)ObjectASN1BitString. getDecodedObject(BerInputStream in)Extracts BitString object from BER input stream.ObjectASN1Boolean. getDecodedObject(BerInputStream in)Extracts Boolean object from BER input stream.ObjectASN1Enumerated. getDecodedObject(BerInputStream in)Extracts array of bytes from BER input stream.ObjectASN1Integer. getDecodedObject(BerInputStream in)Extracts array of bytes from BER input stream.ObjectASN1OctetString. getDecodedObject(BerInputStream in)Extracts array of bytes from BER input stream.ObjectASN1Oid. getDecodedObject(BerInputStream in)Extracts array of integers from BER input stream.ObjectASN1StringType. getDecodedObject(BerInputStream in)Extracts String object from BER input stream.ObjectASN1Time. getDecodedObject(BerInputStream in)protected ObjectASN1Type. getDecodedObject(BerInputStream in)Creates decoded object.intBerInputStream. next()Decodes next encoded type.intDerInputStream. next()protected intBerInputStream. read()Reads the next encoded byte from the encoded input stream.voidBerInputStream. readBitString()Decodes ASN.1 bitstring typevoidDerInputStream. readBitString()voidBerInputStream. readBoolean()Decodes ASN.1 boolean typevoidDerInputStream. readBoolean()voidBerInputStream. readContent()Reads the next encoded content from the encoded input stream.voidBerInputStream. readEnumerated()Decodes ASN.1 Enumerated typevoidBerInputStream. readGeneralizedTime()Decodes ASN.1 GeneralizedTime typevoidDerInputStream. readGeneralizedTime()voidBerInputStream. readInteger()Decodes ASN.1 Integer typevoidBerInputStream. readOctetString()Decodes ASN.1 Octetstring typevoidDerInputStream. readOctetString()voidBerInputStream. readOID()Decodes ASN.1 ObjectIdentifier typevoidBerInputStream. readSequence(ASN1Sequence sequence)Decodes ASN.1 Sequence typevoidDerInputStream. readSequence(ASN1Sequence sequence)voidBerInputStream. readSequenceOf(ASN1SequenceOf sequenceOf)Decodes ASN.1 SequenceOf typevoidBerInputStream. readSet(ASN1Set set)Decodes ASN.1 Set typevoidBerInputStream. readSetOf(ASN1SetOf setOf)Decodes ASN.1 SetOf typevoidDerInputStream. readSetOf(ASN1SetOf setOf)voidBerInputStream. readString(ASN1StringType type)Decodes ASN.1 String typevoidDerInputStream. readString(ASN1StringType type)voidBerInputStream. readUTCTime()Decodes ASN.1 UTCTime typevoidDerInputStream. readUTCTime()voidBerInputStream. reset(byte[] encoded)Resets this stream to initial state.voidASN1Type. verify(byte[] encoded)voidASN1Type. verify(InputStream in)Constructors in org.apache.harmony.security.asn1 that throw IOException Constructor Description BerInputStream(byte[] encoded)Creates stream for decoding.BerInputStream(byte[] encoded, int offset, int expectedLength)Creates stream for decoding.BerInputStream(InputStream in)Creates stream for decoding.BerInputStream(InputStream in, int initialSize)Creates stream for decoding.DerInputStream(byte[] encoded)DerInputStream(byte[] encoded, int offset, int encodingLen)DerInputStream(InputStream in) -
Uses of IOException in org.apache.harmony.security.provider.cert
Constructors in org.apache.harmony.security.provider.cert that throw IOException Constructor Description X509CertImpl(byte[] encoding)Constructs the instance on the base of ASN.1 encoded form of X.509 certificate provided via array of bytes.X509CRLImpl(byte[] encoding)Creates X.509 CRL on the base of ASN.1 DER encoded form of the CRL (CertificateList structure described in RFC 3280) provided via array of bytes. -
Uses of IOException in org.apache.harmony.security.utils
Methods in org.apache.harmony.security.utils that throw IOException Modifier and Type Method Description static Certificate[]JarUtils. verifySignature(InputStream signature, InputStream signatureBlock)This method handle all the work with PKCS7, ASN1 encoding, signature verifying, and certification path building. -
Uses of IOException in org.apache.harmony.security.x501
Methods in org.apache.harmony.security.x501 that throw IOException Modifier and Type Method Description static ObjectIdentifierAttributeTypeAndValue. getObjectIdentifier(String sOid)Parses OID string representation.Collection<?>AttributeValue. getValues(ASN1Type type)Constructors in org.apache.harmony.security.x501 that throw IOException Constructor Description AttributeTypeAndValue(ObjectIdentifier oid, AttributeValue value)Creates AttributeTypeAndValue with OID and AttributeValue.Name(byte[] encoding)Creates newNameinstance from its DER encodingName(String name)Creates newNameinstance -
Uses of IOException in org.apache.harmony.security.x509
Methods in org.apache.harmony.security.x509 that throw IOException Modifier and Type Method Description static voidGeneralName. checkDNS(String dns)Checks the correctness of the string representation of DNS name as specified in RFC 1034 p.static voidGeneralName. checkURI(String uri)Checks the correctness of the string representation of URI name.static AuthorityKeyIdentifierAuthorityKeyIdentifier. decode(byte[] encoding)static CertificatePoliciesCertificatePolicies. decode(byte[] encoding)static CRLDistributionPointsCRLDistributionPoints. decode(byte[] encoding)static InfoAccessSyntaxInfoAccessSyntax. decode(byte[] encoding)static IssuingDistributionPointIssuingDistributionPoint. decode(byte[] encoding)Creates the extension object on the base of its encoded form.static NameConstraintsNameConstraints. decode(byte[] encoding)static SubjectKeyIdentifierSubjectKeyIdentifier. decode(byte[] encoding)Creates an object on the base of its encoded form.ExtensionValueExtension. getDecodedExtensionValue()List<String>ExtendedKeyUsage. getExtendedKeyUsage()Returns the list of string representation of OIDs corresponding to key purpose IDs.X500PrincipalCertificateIssuer. getIssuer()protected charDNParser. getUTF8()Decodes a UTF-8 char.static byte[]GeneralName. ipStrToBytes(String ip)Returns the bytes of the given IP address or masked IP address.static int[]GeneralName. oidStrToInts(String oid)Converts OID into array of ints.List<List<AttributeTypeAndValue>>DNParser. parse()Parses DNX500PrincipalExtensions. valueOfCertificateIssuerExtension()Returns the value of Certificate Issuer Extension (OID = 2.5.29.29).List<String>Extensions. valueOfExtendedKeyUsage()Returns the value of Extended Key Usage extension (OID == 2.5.29.37).Collection<List<?>>Extensions. valueOfIssuerAlternativeName()Returns the value of Issuer Alternative Name Extension (OID = 2.5.29.18).Collection<List<?>>Extensions. valueOfSubjectAlternativeName()Returns the value of Subject Alternative Name (OID = 2.5.29.17).Constructors in org.apache.harmony.security.x509 that throw IOException Constructor Description AlternativeName(boolean which, byte[] encoding)Creates the extension object on the base of its encoded form.BasicConstraints(byte[] encoding)Creates the extension object on the base of its encoded form.CRLNumber(byte[] encoding)Constructs the object on the base of its encoded form.DNParser(String dn)GeneralName(int tag, byte[] name)Constructs an object representing the value of GeneralName.GeneralName(int tag, String name)Makes the GeneralName object from the tag type and corresponding well established string representation of the name value.InhibitAnyPolicy(byte[] encoding)Creates an object on the base of its encoded form.InvalidityDate(byte[] encoding)Constructs the object on the base of its encoded form.KeyUsage(byte[] encoding)Creates the extension object on the base of its encoded form.PolicyConstraints(byte[] encoding)ReasonCode(byte[] encoding) -
Uses of IOException in org.apache.harmony.xml
Methods in org.apache.harmony.xml that throw IOException Modifier and Type Method Description voidExpatReader. parse(String systemId)voidExpatReader. parse(InputSource input) -
Uses of IOException in org.apache.http
Subclasses of IOException in org.apache.http Modifier and Type Class Description classConnectionClosedExceptionIndicates that a connection has been closed.classMalformedChunkCodingExceptionSignals a malformed chunked stream.classNoHttpResponseExceptionSignals that the target server failed to respond with a valid HTTP response.Methods in org.apache.http that throw IOException Modifier and Type Method Description voidHttpConnection. close()Closes this connection gracefully.voidHttpEntity. consumeContent()TODO: The name of this method is misnomer.voidHttpClientConnection. flush()Writes out all pending buffered data over the open connection.voidHttpServerConnection. flush()Sends all pending buffered data over this connection.InputStreamHttpEntity. getContent()Creates a new InputStream object of the entity.booleanHttpClientConnection. isResponseAvailable(int timeout)Checks if response data is available from the connection.voidHttpRequestInterceptor. process(HttpRequest request, HttpContext context)Processes a request.voidHttpResponseInterceptor. process(HttpResponse response, HttpContext context)Processes a response.voidHttpServerConnection. receiveRequestEntity(HttpEntityEnclosingRequest request)Receives the next request entity available from this connection and attaches it to an existing request.HttpRequestHttpServerConnection. receiveRequestHeader()Receives the request line and all headers available from this connection.voidHttpClientConnection. receiveResponseEntity(HttpResponse response)Receives the next response entity available from this connection and attaches it to an existing HttpResponse object.HttpResponseHttpClientConnection. receiveResponseHeader()Receives the request line and headers of the next response available from this connection.voidHttpClientConnection. sendRequestEntity(HttpEntityEnclosingRequest request)Sends the request entity over the connection.voidHttpClientConnection. sendRequestHeader(HttpRequest request)Sends the request line and all headers over the connection.voidHttpServerConnection. sendResponseEntity(HttpResponse response)Sends the response entity of a response over this connection.voidHttpServerConnection. sendResponseHeader(HttpResponse response)Sends the response line and headers of a response over this connection.voidHttpConnection. shutdown()Force-closes this connection.voidHttpEntity. writeTo(OutputStream outstream)Writes the entity content to the output stream. -
Uses of IOException in org.apache.http.client
Subclasses of IOException in org.apache.http.client Modifier and Type Class Description classClientProtocolExceptionSignals an error in the HTTP protocol.classHttpResponseExceptionSignals a non 2xx HTTP response.Methods in org.apache.http.client with parameters of type IOException Modifier and Type Method Description booleanHttpRequestRetryHandler. retryRequest(IOException exception, int executionCount, HttpContext context)Determines if a method should be retried after an IOException occurs during execution.Methods in org.apache.http.client that throw IOException Modifier and Type Method Description HttpResponseHttpClient. execute(HttpUriRequest request)Executes a request using the default context.<T> THttpClient. execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler)Executes a request using the default context and processes the response using the given response handler.<T> THttpClient. execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)Executes a request using the given context and processes the response using the given response handler.HttpResponseHttpClient. execute(HttpUriRequest request, HttpContext context)Executes a request using the given context.HttpResponseHttpClient. execute(HttpHost target, HttpRequest request)Executes a request to the target using the default context.<T> THttpClient. execute(HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler)Executes a request to the target using the default context and processes the response using the given response handler.<T> THttpClient. execute(HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)Executes a request to the target using the given context and processes the response using the given response handler.HttpResponseHttpClient. execute(HttpHost target, HttpRequest request, HttpContext context)Executes a request to the target using the given context.HttpResponseRequestDirector. execute(HttpHost target, HttpRequest request, HttpContext context)Executes a request.TResponseHandler. handleResponse(HttpResponse response)Processes anHttpResponseand returns some value corresponding to that response. -
Uses of IOException in org.apache.http.client.methods
Methods in org.apache.http.client.methods that throw IOException Modifier and Type Method Description voidAbortableHttpRequest. setConnectionRequest(ClientConnectionRequest connRequest)Sets theClientConnectionRequestcallback that can be used to abort a long-lived request for a connection.voidHttpRequestBase. setConnectionRequest(ClientConnectionRequest connRequest)voidAbortableHttpRequest. setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)Sets theConnectionReleaseTriggercallback that can be used to abort an active connection.voidHttpRequestBase. setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger) -
Uses of IOException in org.apache.http.client.protocol
Methods in org.apache.http.client.protocol that throw IOException Modifier and Type Method Description voidRequestAddCookies. process(HttpRequest request, HttpContext context)voidRequestDefaultHeaders. process(HttpRequest request, HttpContext context)voidRequestProxyAuthentication. process(HttpRequest request, HttpContext context)voidRequestTargetAuthentication. process(HttpRequest request, HttpContext context)voidResponseProcessCookies. process(HttpResponse response, HttpContext context) -
Uses of IOException in org.apache.http.client.utils
Methods in org.apache.http.client.utils that throw IOException Modifier and Type Method Description static List<NameValuePair>URLEncodedUtils. parse(HttpEntity entity)Returns a list ofNameValuePairsas parsed from anHttpEntity. -
Uses of IOException in org.apache.http.conn
Subclasses of IOException in org.apache.http.conn Modifier and Type Class Description classConnectionPoolTimeoutExceptionA timeout while waiting for an available connection from a connection manager.classConnectTimeoutExceptionA timeout while connecting to an HTTP server or waiting for an available connection from an HttpConnectionManager.classHttpHostConnectExceptionAConnectExceptionthat specifies theHttpHostthat was being connected to.Methods in org.apache.http.conn that throw IOException Modifier and Type Method Description voidBasicManagedEntity. abortConnection()voidConnectionReleaseTrigger. abortConnection()Releases the connection without the option of keep-alive.voidEofSensorInputStream. abortConnection()Aborts this stream.intEofSensorInputStream. available()protected voidEofSensorInputStream. checkAbort()Detects stream abort and notifies the watcher.protected voidEofSensorInputStream. checkClose()Detects stream close and notifies the watcher.protected voidEofSensorInputStream. checkEOF(int eof)Detects EOF and notifies the watcher.voidEofSensorInputStream. close()SocketMultihomePlainSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)Attempts to connects the socket to any of theInetAddresses the given host name resolves to.voidBasicManagedEntity. consumeContent()booleanBasicEofSensorWatcher. eofDetected(InputStream wrapped)booleanBasicManagedEntity. eofDetected(InputStream wrapped)booleanEofSensorWatcher. eofDetected(InputStream wrapped)Indicates that EOF is detected.InputStreamBasicManagedEntity. getContent()protected booleanEofSensorInputStream. isReadAllowed()Checks whether the underlying stream can be read from.voidManagedClientConnection. layerProtocol(HttpContext context, HttpParams params)Layers a new protocol on top of atunnelledconnection.voidManagedClientConnection. open(HttpRoute route, HttpContext context, HttpParams params)Opens this connection according to the given route.voidOperatedClientConnection. openCompleted(boolean secure, HttpParams params)Signals that the connection has been successfully open.voidClientConnectionOperator. openConnection(OperatedClientConnection conn, HttpHost target, InetAddress local, HttpContext context, HttpParams params)Opens a connection to the given target host.voidOperatedClientConnection. opening(Socket sock, HttpHost target)Signals that this connection is in the process of being open.intEofSensorInputStream. read()intEofSensorInputStream. read(byte[] b)intEofSensorInputStream. read(byte[] b, int off, int len)voidBasicManagedEntity. releaseConnection()voidConnectionReleaseTrigger. releaseConnection()Releases the connection with the option of keep-alive.voidEofSensorInputStream. releaseConnection()Same asclose().protected voidBasicManagedEntity. releaseManagedConnection()Releases the connection gracefully.booleanBasicEofSensorWatcher. streamAbort(InputStream wrapped)booleanBasicManagedEntity. streamAbort(InputStream wrapped)booleanEofSensorWatcher. streamAbort(InputStream wrapped)Indicates that thestreamis aborted.booleanBasicEofSensorWatcher. streamClosed(InputStream wrapped)booleanBasicManagedEntity. streamClosed(InputStream wrapped)booleanEofSensorWatcher. streamClosed(InputStream wrapped)Indicates that thestreamis closed.voidManagedClientConnection. tunnelProxy(HttpHost next, boolean secure, HttpParams params)Indicates that a tunnel to an intermediate proxy has been established.voidManagedClientConnection. tunnelTarget(boolean secure, HttpParams params)Indicates that a tunnel to the target has been established.voidOperatedClientConnection. update(Socket sock, HttpHost target, boolean secure, HttpParams params)Updates this connection.voidClientConnectionOperator. updateSecureConnection(OperatedClientConnection conn, HttpHost target, HttpContext context, HttpParams params)Updates a connection with a layered secure connection.voidBasicManagedEntity. writeTo(OutputStream outstream) -
Uses of IOException in org.apache.http.conn.scheme
Methods in org.apache.http.conn.scheme that throw IOException Modifier and Type Method Description SocketPlainSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)SocketSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)Connects a socket to the given host.SocketLayeredSocketFactory. createSocket(Socket socket, String host, int port, boolean autoClose)Returns a socket connected to the given host that is layered over an existing socket.SocketSocketFactory. createSocket()Creates a new, unconnected socket.InetAddressHostNameResolver. resolve(String hostname) -
Uses of IOException in org.apache.http.conn.ssl
Methods in org.apache.http.conn.ssl that throw IOException Modifier and Type Method Description SocketSSLSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)SocketSSLSocketFactory. createSocket()SocketSSLSocketFactory. createSocket(Socket socket, String host, int port, boolean autoClose)voidAbstractVerifier. verify(String host, SSLSocket ssl)voidX509HostnameVerifier. verify(String host, SSLSocket ssl) -
Uses of IOException in org.apache.http.entity
Methods in org.apache.http.entity that throw IOException Modifier and Type Method Description voidAbstractHttpEntity. consumeContent()Does not consume anything.voidBasicHttpEntity. consumeContent()voidEntityTemplate. consumeContent()voidHttpEntityWrapper. consumeContent()voidInputStreamEntity. consumeContent()InputStreamBufferedHttpEntity. getContent()InputStreamFileEntity. getContent()InputStreamHttpEntityWrapper. getContent()InputStreamInputStreamEntity. getContent()InputStreamSerializableEntity. getContent()InputStreamStringEntity. getContent()voidBasicHttpEntity. writeTo(OutputStream outstream)voidBufferedHttpEntity. writeTo(OutputStream outstream)voidByteArrayEntity. writeTo(OutputStream outstream)voidContentProducer. writeTo(OutputStream outstream)voidEntityTemplate. writeTo(OutputStream outstream)voidFileEntity. writeTo(OutputStream outstream)voidHttpEntityWrapper. writeTo(OutputStream outstream)voidInputStreamEntity. writeTo(OutputStream outstream)voidSerializableEntity. writeTo(OutputStream outstream)voidStringEntity. writeTo(OutputStream outstream)Constructors in org.apache.http.entity that throw IOException Constructor Description BufferedHttpEntity(HttpEntity entity)SerializableEntity(Serializable ser, boolean bufferize) -
Uses of IOException in org.apache.http.impl
Methods in org.apache.http.impl that throw IOException Modifier and Type Method Description voidDefaultHttpClientConnection. bind(Socket socket, HttpParams params)voidDefaultHttpServerConnection. bind(Socket socket, HttpParams params)protected voidSocketHttpClientConnection. bind(Socket socket, HttpParams params)protected voidSocketHttpServerConnection. bind(Socket socket, HttpParams params)voidSocketHttpClientConnection. close()voidSocketHttpServerConnection. close()protected SessionInputBufferSocketHttpServerConnection. createHttpDataReceiver(Socket socket, int buffersize, HttpParams params)protected SessionOutputBufferSocketHttpServerConnection. createHttpDataTransmitter(Socket socket, int buffersize, HttpParams params)protected SessionInputBufferSocketHttpClientConnection. createSessionInputBuffer(Socket socket, int buffersize, HttpParams params)protected SessionOutputBufferSocketHttpClientConnection. createSessionOutputBuffer(Socket socket, int buffersize, HttpParams params)protected voidAbstractHttpClientConnection. doFlush()protected voidAbstractHttpServerConnection. doFlush()voidAbstractHttpClientConnection. flush()voidAbstractHttpServerConnection. flush()booleanAbstractHttpClientConnection. isResponseAvailable(int timeout)voidAbstractHttpServerConnection. receiveRequestEntity(HttpEntityEnclosingRequest request)HttpRequestAbstractHttpServerConnection. receiveRequestHeader()voidAbstractHttpClientConnection. receiveResponseEntity(HttpResponse response)HttpResponseAbstractHttpClientConnection. receiveResponseHeader()voidAbstractHttpClientConnection. sendRequestEntity(HttpEntityEnclosingRequest request)voidAbstractHttpClientConnection. sendRequestHeader(HttpRequest request)voidAbstractHttpServerConnection. sendResponseEntity(HttpResponse response)voidAbstractHttpServerConnection. sendResponseHeader(HttpResponse response)voidSocketHttpClientConnection. shutdown()voidSocketHttpServerConnection. shutdown() -
Uses of IOException in org.apache.http.impl.client
Methods in org.apache.http.impl.client with parameters of type IOException Modifier and Type Method Description booleanDefaultHttpRequestRetryHandler. retryRequest(IOException exception, int executionCount, HttpContext context)UsedretryCountandrequestSentRetryEnabledto determine if the given method should be retried.Methods in org.apache.http.impl.client that throw IOException Modifier and Type Method Description protected booleanDefaultRequestDirector. createTunnelToProxy(HttpRoute route, int hop, HttpContext context)Creates a tunnel to an intermediate proxy.protected booleanDefaultRequestDirector. createTunnelToTarget(HttpRoute route, HttpContext context)Creates a tunnel to the target server.protected voidDefaultRequestDirector. establishRoute(HttpRoute route, HttpContext context)Establishes the target route.HttpResponseAbstractHttpClient. execute(HttpUriRequest request)<T> TAbstractHttpClient. execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler)<T> TAbstractHttpClient. execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)HttpResponseAbstractHttpClient. execute(HttpUriRequest request, HttpContext context)Maps toexecute(target, request, context).HttpResponseAbstractHttpClient. execute(HttpHost target, HttpRequest request)<T> TAbstractHttpClient. execute(HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler)<T> TAbstractHttpClient. execute(HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)HttpResponseAbstractHttpClient. execute(HttpHost target, HttpRequest request, HttpContext context)HttpResponseDefaultRequestDirector. execute(HttpHost target, HttpRequest request, HttpContext context)StringBasicResponseHandler. handleResponse(HttpResponse response)Returns the response body as a String if the response was successful (a 2xx status code).protected RoutedRequestDefaultRequestDirector. handleResponse(RoutedRequest roureq, HttpResponse response, HttpContext context)Analyzes a response to check need for a followup. -
Uses of IOException in org.apache.http.impl.conn
Methods in org.apache.http.impl.conn that throw IOException Modifier and Type Method Description voidAbstractPooledConnAdapter. close()voidDefaultClientConnection. close()protected voidSingleClientConnManager.PoolEntry. close()Closes the connection in this pool entry.protected SessionInputBufferDefaultClientConnection. createSessionInputBuffer(Socket socket, int buffersize, HttpParams params)protected SessionOutputBufferDefaultClientConnection. createSessionOutputBuffer(Socket socket, int buffersize, HttpParams params)voidAbstractClientConnAdapter. flush()voidLoggingSessionOutputBuffer. flush()voidWire. input(byte[] b)voidWire. input(byte[] b, int off, int len)voidWire. input(int b)voidWire. input(InputStream instream)voidWire. input(String s)booleanLoggingSessionInputBuffer. isDataAvailable(int timeout)booleanAbstractClientConnAdapter. isResponseAvailable(int timeout)voidAbstractPooledConnAdapter. layerProtocol(HttpContext context, HttpParams params)voidAbstractPoolEntry. layerProtocol(HttpContext context, HttpParams params)Layers a protocol on top of an established tunnel.voidAbstractPooledConnAdapter. open(HttpRoute route, HttpContext context, HttpParams params)voidAbstractPoolEntry. open(HttpRoute route, HttpContext context, HttpParams params)Opens the underlying connection.voidDefaultClientConnection. openCompleted(boolean secure, HttpParams params)voidDefaultClientConnectionOperator. openConnection(OperatedClientConnection conn, HttpHost target, InetAddress local, HttpContext context, HttpParams params)voidDefaultClientConnection. opening(Socket sock, HttpHost target)voidWire. output(byte[] b)voidWire. output(byte[] b, int off, int len)voidWire. output(int b)voidWire. output(InputStream outstream)voidWire. output(String s)protected HttpMessageDefaultResponseParser. parseHead(SessionInputBuffer sessionBuffer)protected voidDefaultClientConnectionOperator. prepareSocket(Socket sock, HttpContext context, HttpParams params)Performs standard initializations on a newly created socket.intLoggingSessionInputBuffer. read()intLoggingSessionInputBuffer. read(byte[] b)intLoggingSessionInputBuffer. read(byte[] b, int off, int len)StringLoggingSessionInputBuffer. readLine()intLoggingSessionInputBuffer. readLine(CharArrayBuffer buffer)voidAbstractClientConnAdapter. receiveResponseEntity(HttpResponse response)HttpResponseAbstractClientConnAdapter. receiveResponseHeader()HttpResponseDefaultClientConnection. receiveResponseHeader()voidAbstractClientConnAdapter. sendRequestEntity(HttpEntityEnclosingRequest request)voidAbstractClientConnAdapter. sendRequestHeader(HttpRequest request)voidDefaultClientConnection. sendRequestHeader(HttpRequest request)voidAbstractPooledConnAdapter. shutdown()voidDefaultClientConnection. shutdown()Force-closes this connection.protected voidSingleClientConnManager.PoolEntry. shutdown()Shuts down the connection in this pool entry.voidAbstractPooledConnAdapter. tunnelProxy(HttpHost next, boolean secure, HttpParams params)voidAbstractPoolEntry. tunnelProxy(HttpHost next, boolean secure, HttpParams params)Tracks tunnelling of the connection to a chained proxy.voidAbstractPooledConnAdapter. tunnelTarget(boolean secure, HttpParams params)voidAbstractPoolEntry. tunnelTarget(boolean secure, HttpParams params)Tracks tunnelling of the connection to the target.voidDefaultClientConnection. update(Socket sock, HttpHost target, boolean secure, HttpParams params)voidDefaultClientConnectionOperator. updateSecureConnection(OperatedClientConnection conn, HttpHost target, HttpContext context, HttpParams params)voidLoggingSessionOutputBuffer. write(byte[] b)voidLoggingSessionOutputBuffer. write(byte[] b, int off, int len)voidLoggingSessionOutputBuffer. write(int b)voidLoggingSessionOutputBuffer. writeLine(String s)voidLoggingSessionOutputBuffer. writeLine(CharArrayBuffer buffer) -
Uses of IOException in org.apache.http.impl.entity
Methods in org.apache.http.impl.entity that throw IOException Modifier and Type Method Description HttpEntityEntityDeserializer. deserialize(SessionInputBuffer inbuffer, HttpMessage message)protected BasicHttpEntityEntityDeserializer. doDeserialize(SessionInputBuffer inbuffer, HttpMessage message)protected OutputStreamEntitySerializer. doSerialize(SessionOutputBuffer outbuffer, HttpMessage message)voidEntitySerializer. serialize(SessionOutputBuffer outbuffer, HttpMessage message, HttpEntity entity) -
Uses of IOException in org.apache.http.impl.io
Methods in org.apache.http.impl.io that throw IOException Modifier and Type Method Description intIdentityInputStream. available()voidChunkedInputStream. close()Upon close, this reads the remainder of the chunked message, leaving the underlying socket at a position to start reading the next response without scanning.voidChunkedOutputStream. close()Finishes writing to the underlying stream, but does NOT close the underlying stream.voidContentLengthInputStream. close()Reads until the end of the known length of content.voidContentLengthOutputStream. close()Does not close the underlying socket output.voidIdentityInputStream. close()voidIdentityOutputStream. close()Does not close the underlying socket output.protected intAbstractSessionInputBuffer. fillBuffer()voidChunkedOutputStream. finish()Must be called to ensure the internal cache is flushed and the closing chunk is written.voidAbstractSessionOutputBuffer. flush()voidChunkedOutputStream. flush()Flushes the content buffer and the underlying stream.voidContentLengthOutputStream. flush()voidIdentityOutputStream. flush()protected voidAbstractSessionOutputBuffer. flushBuffer()protected voidChunkedOutputStream. flushCache()Writes the cache out onto the underlying streamprotected voidChunkedOutputStream. flushCacheWithAppend(byte[] bufferToAppend, int off, int len)Writes the cache and bufferToAppend to the underlying stream as one large chunkbooleanSocketInputBuffer. isDataAvailable(int timeout)booleanSocketInputBuffer. isStale()Returns true if the connection is probably functional.HttpMessageAbstractMessageParser. parse()protected abstract HttpMessageAbstractMessageParser. parseHead(SessionInputBuffer sessionBuffer)protected HttpMessageHttpRequestParser. parseHead(SessionInputBuffer sessionBuffer)protected HttpMessageHttpResponseParser. parseHead(SessionInputBuffer sessionBuffer)static Header[]AbstractMessageParser. parseHeaders(SessionInputBuffer inbuffer, int maxHeaderCount, int maxLineLen, LineParser parser)Parses HTTP headers from the data receiver stream according to the generic format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3.intAbstractSessionInputBuffer. read()intAbstractSessionInputBuffer. read(byte[] b)intAbstractSessionInputBuffer. read(byte[] b, int off, int len)intChunkedInputStream. read()Returns all the data in a chunked stream in coalesced form.intChunkedInputStream. read(byte[] b)Read some bytes from the stream.intChunkedInputStream. read(byte[] b, int off, int len)Read some bytes from the stream.intContentLengthInputStream. read()Read the next byte from the streamintContentLengthInputStream. read(byte[] b)Read more bytes from the stream.intContentLengthInputStream. read(byte[] b, int off, int len)Does standardInputStream.read(byte[], int, int)behavior, but also notifies the watcher when the contents have been consumed.intIdentityInputStream. read()intIdentityInputStream. read(byte[] b, int off, int len)StringAbstractSessionInputBuffer. readLine()intAbstractSessionInputBuffer. readLine(CharArrayBuffer charbuffer)longContentLengthInputStream. skip(long n)Skips and discards a number of bytes from the input stream.voidAbstractMessageWriter. write(HttpMessage message)voidAbstractSessionOutputBuffer. write(byte[] b)voidAbstractSessionOutputBuffer. write(byte[] b, int off, int len)voidAbstractSessionOutputBuffer. write(int b)voidChunkedOutputStream. write(byte[] b)Writes the array.voidChunkedOutputStream. write(byte[] src, int off, int len)voidChunkedOutputStream. write(int b)voidContentLengthOutputStream. write(byte[] b)voidContentLengthOutputStream. write(byte[] b, int off, int len)voidContentLengthOutputStream. write(int b)voidIdentityOutputStream. write(byte[] b)voidIdentityOutputStream. write(byte[] b, int off, int len)voidIdentityOutputStream. write(int b)protected voidChunkedOutputStream. writeClosingChunk()protected abstract voidAbstractMessageWriter. writeHeadLine(HttpMessage message)protected voidHttpRequestWriter. writeHeadLine(HttpMessage message)protected voidHttpResponseWriter. writeHeadLine(HttpMessage message)voidAbstractSessionOutputBuffer. writeLine(String s)voidAbstractSessionOutputBuffer. writeLine(CharArrayBuffer s)Constructors in org.apache.http.impl.io that throw IOException Constructor Description ChunkedOutputStream(SessionOutputBuffer out)Wraps a session output buffer and chunks the output.ChunkedOutputStream(SessionOutputBuffer out, int bufferSize)Wraps a session output buffer and chunks the output.SocketInputBuffer(Socket socket, int buffersize, HttpParams params)SocketOutputBuffer(Socket socket, int buffersize, HttpParams params) -
Uses of IOException in org.apache.http.io
Methods in org.apache.http.io that throw IOException Modifier and Type Method Description voidSessionOutputBuffer. flush()booleanSessionInputBuffer. isDataAvailable(int timeout)HttpMessageHttpMessageParser. parse()intSessionInputBuffer. read()intSessionInputBuffer. read(byte[] b)intSessionInputBuffer. read(byte[] b, int off, int len)StringSessionInputBuffer. readLine()intSessionInputBuffer. readLine(CharArrayBuffer buffer)voidHttpMessageWriter. write(HttpMessage message)voidSessionOutputBuffer. write(byte[] b)voidSessionOutputBuffer. write(byte[] b, int off, int len)voidSessionOutputBuffer. write(int b)voidSessionOutputBuffer. writeLine(String s)voidSessionOutputBuffer. writeLine(CharArrayBuffer buffer) -
Uses of IOException in org.apache.http.protocol
Methods in org.apache.http.protocol that throw IOException Modifier and Type Method Description protected HttpResponseHttpRequestExecutor. doReceiveResponse(HttpRequest request, HttpClientConnection conn, HttpContext context)Wait for and receive a response.protected HttpResponseHttpRequestExecutor. doSendRequest(HttpRequest request, HttpClientConnection conn, HttpContext context)Send a request over a connection.protected voidHttpService. doService(HttpRequest request, HttpResponse response, HttpContext context)HttpResponseHttpRequestExecutor. execute(HttpRequest request, HttpClientConnection conn, HttpContext context)Synchronously send a request and obtain the response.voidHttpRequestHandler. handle(HttpRequest request, HttpResponse response, HttpContext context)voidHttpService. handleRequest(HttpServerConnection conn, HttpContext context)voidHttpRequestExecutor. postProcess(HttpResponse response, HttpProcessor processor, HttpContext context)Finish a response.voidHttpRequestExecutor. preProcess(HttpRequest request, HttpProcessor processor, HttpContext context)Prepare a request for sending.voidBasicHttpProcessor. process(HttpRequest request, HttpContext context)voidBasicHttpProcessor. process(HttpResponse response, HttpContext context)voidRequestConnControl. process(HttpRequest request, HttpContext context)voidRequestContent. process(HttpRequest request, HttpContext context)voidRequestDate. process(HttpRequest request, HttpContext context)voidRequestExpectContinue. process(HttpRequest request, HttpContext context)voidRequestTargetHost. process(HttpRequest request, HttpContext context)voidRequestUserAgent. process(HttpRequest request, HttpContext context)voidResponseConnControl. process(HttpResponse response, HttpContext context)voidResponseContent. process(HttpResponse response, HttpContext context)voidResponseDate. process(HttpResponse response, HttpContext context)voidResponseServer. process(HttpResponse response, HttpContext context) -
Uses of IOException in org.apache.http.util
Methods in org.apache.http.util that throw IOException Modifier and Type Method Description static byte[]EntityUtils. toByteArray(HttpEntity entity)static StringEntityUtils. toString(HttpEntity entity)static StringEntityUtils. toString(HttpEntity entity, String defaultCharset) -
Uses of IOException in org.apache.xalan.extensions
Methods in org.apache.xalan.extensions that throw IOException Modifier and Type Method Description abstract voidExtensionHandler. processElement(String localPart, ElemTemplateElement element, TransformerImpl transformer, Stylesheet stylesheetTree, Object methodKey)Process a call to this extension namespace via an element. -
Uses of IOException in org.apache.xalan.transformer
Methods in org.apache.xalan.transformer that throw IOException Modifier and Type Method Description voidTrAXFilter. parse(String systemId)Parse a document.voidTrAXFilter. parse(InputSource input)Parse a document.InputSourceTransformerHandlerImpl. resolveEntity(String publicId, String systemId)Filter an external entity resolution. -
Uses of IOException in org.apache.xml.serializer
Methods in org.apache.xml.serializer that throw IOException Modifier and Type Method Description ContentHandlerSerializer. asContentHandler()Return aContentHandlerinterface to provide SAX input to.ContentHandlerSerializerBase. asContentHandler()Return aContentHandlerinterface into this serializer.ContentHandlerToUnknownStream. asContentHandler()ObjectSerializer. asDOM3Serializer()Return an Object into this serializer to be cast to a DOM3Serializer.ObjectSerializerBase. asDOM3Serializer()Return aDOM3Serializerinterface into this serializer.ObjectToUnknownStream. asDOM3Serializer()DOMSerializerSerializer. asDOMSerializer()Return aDOMSerializerinterface into this serializer.DOMSerializerSerializerBase. asDOMSerializer()Return aDOMSerializerinterface into this serializer.DOMSerializerToUnknownStream. asDOMSerializer()protected voidToStream. indent()Indent at the current element nesting depth.protected voidToStream. indent(int depth)Might print a newline character and the indentation amount of the given depth.protected voidToStream. outputLineSep()Output a system-dependent line break.protected voidToHTMLStream. processAttribute(Writer writer, String name, String value, ElemDesc elemDesc)Process an attribute.voidToHTMLStream. processAttributes(Writer writer, int nAttrs)Process the attributes, which means to write out the currently collected attributes to the writer.voidToStream. processAttributes(Writer writer, int nAttrs)Process the attributes, which means to write out the currently collected attributes to the writer.voidDOMSerializer. serialize(Node node)Serializes the DOM node.voidSerializationHandler. serialize(Node node)Notify that the serializer should take this DOM node as input to be serialized.voidToStream. serialize(Node node)Serializes the DOM node.voidToTextSAXHandler. serialize(Node node)Deprecated.voidToUnknownStream. serialize(Node node)Converts the DOM node to outputvoidToXMLSAXHandler. serialize(Node node)voidDOM3Serializer. serializeDOM3(Node node)Serializes the Level 3 DOM node.voidToHTMLStream. writeAttrString(Writer writer, String string, String encoding)Writes the specified string after substituting specials, and UTF-16 surrogates for character references&#xnn.voidToStream. writeAttrString(Writer writer, String string, String encoding)Returns the specified string after substituting specials, and UTF-16 surrogates for chracter references&#xnn.voidToHTMLStream. writeAttrURI(Writer writer, String string, boolean doURLEscaping)Write the specified string after substituting non ASCII characters, with%HH, where HH is the hex of the byte value.protected intToStream. writeUTF16Surrogate(char c, char[] ch, int i, int end)Once a surrogate has been detected, write out the pair of characters if it is in the encoding, or if there is no encoding, otherwise write out an entity reference of the value of the unicode code point of the character represented by the high/low surrogate pair. -
Uses of IOException in org.apache.xml.serializer.dom3
Methods in org.apache.xml.serializer.dom3 that throw IOException Modifier and Type Method Description voidDOM3SerializerImpl. serializeDOM3(Node node)Serializes the Level 3 DOM node by creating an instance of DOM3TreeWalker which traverses the DOM tree and invokes handler events to serialize the DOM NOde. -
Uses of IOException in org.apache.xml.utils
Subclasses of IOException in org.apache.xml.utils Modifier and Type Class Description static classURI.MalformedURIExceptionMalformedURIExceptions are thrown in the process of building a URI or setting fields on a URI when an operation would result in an invalid URI specification. -
Uses of IOException in org.apache.xpath
Methods in org.apache.xpath that throw IOException Modifier and Type Method Description SourceSourceTreeManager. resolveURI(String base, String urlString, SourceLocator locator)This will be called by the processor when it encounters an xsl:include, xsl:import, or document() function. -
Uses of IOException in org.bouncycastle.asn1
Subclasses of IOException in org.bouncycastle.asn1 Modifier and Type Class Description classASN1ExceptionMethods in org.bouncycastle.asn1 that throw IOException Modifier and Type Method Description protected ASN1PrimitiveASN1InputStream. buildObject(int tag, int tagNo, int length)build an object given its tag and the number of bytes to construct it from.voidASN1OutputStream. close()voidBEROctetString. encode(ASN1OutputStream out)voidASN1OutputStream. flush()static ASN1PrimitiveASN1Primitive. fromByteArray(byte[] data)Create a base ASN.1 object from a byte stream.byte[]ASN1Object. getEncoded()Return the default BER or DER encoding for this object.byte[]ASN1Object. getEncoded(String encoding)Return either the default for "BER" or a DER encoding if "DER" is specified.ASN1PrimitiveBERApplicationSpecificParser. getLoadedObject()ASN1PrimitiveBEROctetStringParser. getLoadedObject()ASN1PrimitiveBERSequenceParser. getLoadedObject()ASN1PrimitiveBERSetParser. getLoadedObject()ASN1PrimitiveBERTaggedObjectParser. getLoadedObject()ASN1PrimitiveDERExternalParser. getLoadedObject()ASN1PrimitiveDEROctetStringParser. getLoadedObject()ASN1PrimitiveDERSequenceParser. getLoadedObject()ASN1PrimitiveDERSetParser. getLoadedObject()ASN1PrimitiveInMemoryRepresentable. getLoadedObject()ASN1PrimitiveDERApplicationSpecific. getObject()Return the enclosed object assuming explicit tagging.ASN1PrimitiveDERApplicationSpecific. getObject(int derTagNo)Return the enclosed object assuming implicit tagging.ASN1EncodableASN1TaggedObjectParser. getObjectParser(int tag, boolean isExplicit)ASN1EncodableBERTaggedObjectParser. getObjectParser(int tag, boolean isExplicit)protected voidASN1InputStream. readFully(byte[] bytes)protected intASN1InputStream. readLength()ASN1EncodableASN1ApplicationSpecificParser. readObject()ASN1PrimitiveASN1InputStream. readObject()ASN1EncodableASN1SequenceParser. readObject()ASN1EncodableASN1SetParser. readObject()ASN1EncodableASN1StreamParser. readObject()ASN1EncodableBERApplicationSpecificParser. readObject()ASN1EncodableBERSequenceParser. readObject()ASN1EncodableBERSetParser. readObject()ASN1EncodableDERExternalParser. readObject()ASN1EncodableDERSequenceParser. readObject()ASN1EncodableDERSetParser. readObject()protected voidBERGenerator. writeBERBody(InputStream contentStream)protected voidBERGenerator. writeBEREnd()protected voidBERGenerator. writeBERHeader(int tag)protected voidASN1OutputStream. writeNull()voidASN1OutputStream. writeObject(ASN1Encodable obj)voidBEROutputStream. writeObject(Object obj)voidDEROutputStream. writeObject(ASN1Encodable obj)voidDLOutputStream. writeObject(ASN1Encodable obj)Constructors in org.bouncycastle.asn1 that throw IOException Constructor Description BEROctetStringGenerator(OutputStream out)BEROctetStringGenerator(OutputStream out, int tagNo, boolean isExplicit)DERApplicationSpecific(boolean explicit, int tag, ASN1Encodable object)DERApplicationSpecific(int tag, ASN1Encodable object)DERBitString(ASN1Encodable obj)DEROctetString(ASN1Encodable obj) -
Uses of IOException in org.bouncycastle.asn1.pkcs
Methods in org.bouncycastle.asn1.pkcs that throw IOException Modifier and Type Method Description ASN1EncodablePrivateKeyInfo. parsePrivateKey()Constructors in org.bouncycastle.asn1.pkcs that throw IOException Constructor Description PrivateKeyInfo(AlgorithmIdentifier algId, ASN1Encodable privateKey)PrivateKeyInfo(AlgorithmIdentifier algId, ASN1Encodable privateKey, ASN1Set attributes) -
Uses of IOException in org.bouncycastle.asn1.x500.style
Methods in org.bouncycastle.asn1.x500.style that throw IOException Modifier and Type Method Description static ASN1EncodableIETFUtils. valueFromHexString(String str, int off) -
Uses of IOException in org.bouncycastle.asn1.x509
Methods in org.bouncycastle.asn1.x509 that throw IOException Modifier and Type Method Description voidExtensionsGenerator. addExtension(ASN1ObjectIdentifier oid, boolean critical, ASN1Encodable value)Add an extension with the given oid and the passed in value to be included in the OCTET STRING associated with the extension.protected ASN1PrimitiveX509NameEntryConverter. convertHexEncoded(String str, int off)Convert an inline encoded hex string rendition of an ASN.1 object back into its corresponding ASN.1 object.ASN1PrimitiveSubjectPublicKeyInfo. getPublicKey()Deprecated.use parsePublicKeyASN1PrimitiveSubjectPublicKeyInfo. parsePublicKey()for when the public key is an encoded object - if the bitstring can't be decoded this routine throws an IOException.Constructors in org.bouncycastle.asn1.x509 that throw IOException Constructor Description SubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1Encodable publicKey) -
Uses of IOException in org.bouncycastle.cert
Subclasses of IOException in org.bouncycastle.cert Modifier and Type Class Description classCertIOExceptionGeneral IOException thrown in the cert package and its sub-packages.Methods in org.bouncycastle.cert that throw IOException Modifier and Type Method Description byte[]X509AttributeCertificateHolder. getEncoded()Return the ASN.1 encoding of this holder's attribute certificate.byte[]X509CertificateHolder. getEncoded()Return the ASN.1 encoding of this holder's certificate.byte[]X509CRLHolder. getEncoded()Return the ASN.1 encoding of this holder's CRL.Constructors in org.bouncycastle.cert that throw IOException Constructor Description X509AttributeCertificateHolder(byte[] certEncoding)Create a X509AttributeCertificateHolder from the passed in bytes.X509CertificateHolder(byte[] certEncoding)Create a X509CertificateHolder from the passed in bytes.X509CRLHolder(byte[] crlEncoding)Create a X509CRLHolder from the passed in bytes.X509CRLHolder(InputStream crlStream)Create a X509CRLHolder from the passed in InputStream. -
Uses of IOException in org.bouncycastle.cms
Methods in org.bouncycastle.cms that throw IOException Modifier and Type Method Description byte[]CMSSignedData. getEncoded()return the ASN.1 encoded representation of this object.byte[]SignerInformation. getEncodedSignedAttributes()return the DER encoding of the signed attributes.voidCMSAbsentContent. write(OutputStream zOut)voidCMSProcessable. write(OutputStream out)generic routine to copy out the data we want processed - the OutputStream passed in will do the handling on it's own.voidCMSProcessableByteArray. write(OutputStream zOut) -
Uses of IOException in org.bouncycastle.crypto.io
Methods in org.bouncycastle.crypto.io that throw IOException Modifier and Type Method Description intCipherInputStream. available()voidCipherInputStream. close()voidCipherOutputStream. close()Closes this output stream and releases any system resources associated with this stream.voidCipherOutputStream. flush()Flushes this output stream by forcing any buffered output bytes that have already been processed by the encapsulated cipher object to be written out.intCipherInputStream. read()intCipherInputStream. read(byte[] b)intCipherInputStream. read(byte[] b, int off, int len)intDigestInputStream. read()intDigestInputStream. read(byte[] b, int off, int len)intMacInputStream. read()intMacInputStream. read(byte[] b, int off, int len)longCipherInputStream. skip(long n)voidCipherOutputStream. write(byte[] b)Writesb.lengthbytes from the specified byte array to this output stream.voidCipherOutputStream. write(byte[] b, int off, int len)Writeslenbytes from the specified byte array starting at offsetoffto this output stream.voidCipherOutputStream. write(int b)Writes the specified byte to this output stream.voidDigestOutputStream. write(byte[] b, int off, int len)voidDigestOutputStream. write(int b)voidMacOutputStream. write(byte[] b, int off, int len)voidMacOutputStream. write(int b) -
Uses of IOException in org.bouncycastle.crypto.util
Methods in org.bouncycastle.crypto.util that throw IOException Modifier and Type Method Description static AsymmetricKeyParameterPrivateKeyFactory. createKey(byte[] privateKeyInfoData)Create a private key parameter from a PKCS8 PrivateKeyInfo encoding.static AsymmetricKeyParameterPrivateKeyFactory. createKey(InputStream inStr)Create a private key parameter from a PKCS8 PrivateKeyInfo encoding read from a stream.static AsymmetricKeyParameterPrivateKeyFactory. createKey(PrivateKeyInfo keyInfo)Create a private key parameter from the passed in PKCS8 PrivateKeyInfo object.static AsymmetricKeyParameterPublicKeyFactory. createKey(byte[] keyInfoData)Create a public key from a SubjectPublicKeyInfo encodingstatic AsymmetricKeyParameterPublicKeyFactory. createKey(InputStream inStr)Create a public key from a SubjectPublicKeyInfo encoding read from a streamstatic AsymmetricKeyParameterPublicKeyFactory. createKey(SubjectPublicKeyInfo keyInfo)Create a public key from the passed in SubjectPublicKeyInfo -
Uses of IOException in org.bouncycastle.jcajce.io
Methods in org.bouncycastle.jcajce.io that throw IOException Modifier and Type Method Description voidMacOutputStream. write(byte[] b, int off, int len)voidMacOutputStream. write(int b) -
Uses of IOException in org.bouncycastle.jcajce.provider.asymmetric.dh
Methods in org.bouncycastle.jcajce.provider.asymmetric.dh that throw IOException Modifier and Type Method Description protected voidAlgorithmParametersSpi. engineInit(byte[] params)protected voidAlgorithmParametersSpi. engineInit(byte[] params, String format)PrivateKeyKeyFactorySpi. generatePrivate(PrivateKeyInfo keyInfo)PublicKeyKeyFactorySpi. generatePublic(SubjectPublicKeyInfo keyInfo)Constructors in org.bouncycastle.jcajce.provider.asymmetric.dh that throw IOException Constructor Description BCDHPrivateKey(PrivateKeyInfo info) -
Uses of IOException in org.bouncycastle.jcajce.provider.asymmetric.dsa
Methods in org.bouncycastle.jcajce.provider.asymmetric.dsa that throw IOException Modifier and Type Method Description protected voidAlgorithmParametersSpi. engineInit(byte[] params)protected voidAlgorithmParametersSpi. engineInit(byte[] params, String format)PrivateKeyKeyFactorySpi. generatePrivate(PrivateKeyInfo keyInfo)PublicKeyKeyFactorySpi. generatePublic(SubjectPublicKeyInfo keyInfo)Constructors in org.bouncycastle.jcajce.provider.asymmetric.dsa that throw IOException Constructor Description BCDSAPrivateKey(PrivateKeyInfo info) -
Uses of IOException in org.bouncycastle.jcajce.provider.asymmetric.ec
Methods in org.bouncycastle.jcajce.provider.asymmetric.ec that throw IOException Modifier and Type Method Description PrivateKeyKeyFactorySpi. generatePrivate(PrivateKeyInfo keyInfo)PublicKeyKeyFactorySpi. generatePublic(SubjectPublicKeyInfo keyInfo) -
Uses of IOException in org.bouncycastle.jcajce.provider.asymmetric.rsa
Methods in org.bouncycastle.jcajce.provider.asymmetric.rsa that throw IOException Modifier and Type Method Description protected byte[]AlgorithmParametersSpi.PSS. engineGetEncoded()Return the PKCS#1 ASN.1 structure RSASSA-PSS-params.protected byte[]AlgorithmParametersSpi.PSS. engineGetEncoded(String format)protected voidAlgorithmParametersSpi.OAEP. engineInit(byte[] params)protected voidAlgorithmParametersSpi.OAEP. engineInit(byte[] params, String format)protected voidAlgorithmParametersSpi.PSS. engineInit(byte[] params)protected voidAlgorithmParametersSpi.PSS. engineInit(byte[] params, String format)PrivateKeyKeyFactorySpi. generatePrivate(PrivateKeyInfo keyInfo)PublicKeyKeyFactorySpi. generatePublic(SubjectPublicKeyInfo keyInfo) -
Uses of IOException in org.bouncycastle.jcajce.provider.asymmetric.util
Methods in org.bouncycastle.jcajce.provider.asymmetric.util that throw IOException Modifier and Type Method Description BigInteger[]DSAEncoder. decode(byte[] sig)byte[]DSAEncoder. encode(BigInteger r, BigInteger s)voidPKCS12BagAttributeCarrierImpl. readObject(ObjectInputStream in)voidPKCS12BagAttributeCarrierImpl. writeObject(ObjectOutputStream out) -
Uses of IOException in org.bouncycastle.jcajce.provider.keystore.bc
Methods in org.bouncycastle.jcajce.provider.keystore.bc that throw IOException Modifier and Type Method Description voidBcKeyStoreSpi.BouncyCastleStore. engineLoad(InputStream stream, char[] password)voidBcKeyStoreSpi. engineLoad(InputStream stream, char[] password)voidBcKeyStoreSpi.BouncyCastleStore. engineStore(OutputStream stream, char[] password)voidBcKeyStoreSpi. engineStore(OutputStream stream, char[] password)protected voidBcKeyStoreSpi. loadStore(InputStream in)protected CipherBcKeyStoreSpi. makePBECipher(String algorithm, int mode, char[] password, byte[] salt, int iterationCount)protected voidBcKeyStoreSpi. saveStore(OutputStream out) -
Uses of IOException in org.bouncycastle.jcajce.provider.keystore.pkcs12
Methods in org.bouncycastle.jcajce.provider.keystore.pkcs12 that throw IOException Modifier and Type Method Description protected byte[]PKCS12KeyStoreSpi. cryptData(boolean forEncryption, AlgorithmIdentifier algId, char[] password, boolean wrongPKCS12Zero, byte[] data)voidPKCS12KeyStoreSpi. engineLoad(InputStream stream, char[] password)voidPKCS12KeyStoreSpi. engineStore(OutputStream stream, char[] password)voidPKCS12KeyStoreSpi. engineStore(KeyStore.LoadStoreParameter param)protected PrivateKeyPKCS12KeyStoreSpi. unwrapKey(AlgorithmIdentifier algId, byte[] data, char[] password, boolean wrongPKCS12Zero)protected byte[]PKCS12KeyStoreSpi. wrapKey(String algorithm, Key key, PKCS12PBEParams pbeParams, char[] password) -
Uses of IOException in org.bouncycastle.jcajce.provider.symmetric
Methods in org.bouncycastle.jcajce.provider.symmetric that throw IOException Modifier and Type Method Description protected voidPBEPKCS12.AlgParams. engineInit(byte[] params)protected voidPBEPKCS12.AlgParams. engineInit(byte[] params, String format) -
Uses of IOException in org.bouncycastle.jcajce.provider.symmetric.util
Methods in org.bouncycastle.jcajce.provider.symmetric.util that throw IOException Modifier and Type Method Description protected byte[]IvAlgorithmParameters. engineGetEncoded()protected byte[]IvAlgorithmParameters. engineGetEncoded(String format)protected voidIvAlgorithmParameters. engineInit(byte[] params)protected voidIvAlgorithmParameters. engineInit(byte[] params, String format) -
Uses of IOException in org.bouncycastle.jcajce.provider.util
Methods in org.bouncycastle.jcajce.provider.util that throw IOException Modifier and Type Method Description PrivateKeyAsymmetricKeyInfoConverter. generatePrivate(PrivateKeyInfo keyInfo)PublicKeyAsymmetricKeyInfoConverter. generatePublic(SubjectPublicKeyInfo keyInfo) -
Uses of IOException in org.bouncycastle.jce
Constructors in org.bouncycastle.jce that throw IOException Constructor Description X509Principal(byte[] bytes)Constructor from an encoded byte array. -
Uses of IOException in org.bouncycastle.jce.netscape
Constructors in org.bouncycastle.jce.netscape that throw IOException Constructor Description NetscapeCertRequest(byte[] req) -
Uses of IOException in org.bouncycastle.jce.provider
Methods in org.bouncycastle.jce.provider that throw IOException Modifier and Type Method Description static PrivateKeyBouncyCastleProvider. getPrivateKey(PrivateKeyInfo privateKeyInfo)static PublicKeyBouncyCastleProvider. getPublicKey(SubjectPublicKeyInfo publicKeyInfo) -
Uses of IOException in org.bouncycastle.operator
Subclasses of IOException in org.bouncycastle.operator Modifier and Type Class Description classOperatorStreamException -
Uses of IOException in org.bouncycastle.util
Methods in org.bouncycastle.util that throw IOException Modifier and Type Method Description static voidStrings. toUTF8ByteArray(char[] string, OutputStream sOut) -
Uses of IOException in org.bouncycastle.util.encoders
Methods in org.bouncycastle.util.encoders that throw IOException Modifier and Type Method Description static intBase64. decode(String data, OutputStream out)decode the base 64 encoded String data writing it to the given output stream, whitespace characters will be ignored.intBase64Encoder. decode(byte[] data, int off, int length, OutputStream out)decode the base 64 encoded byte data writing it to the given output stream, whitespace characters will be ignored.intBase64Encoder. decode(String data, OutputStream out)decode the base 64 encoded String data writing it to the given output stream, whitespace characters will be ignored.intEncoder. decode(byte[] data, int off, int length, OutputStream out)intEncoder. decode(String data, OutputStream out)static intHex. decode(String data, OutputStream out)decode the Hex encoded String data writing it to the given output stream, whitespace characters will be ignored.intHexEncoder. decode(byte[] data, int off, int length, OutputStream out)decode the Hex encoded byte data writing it to the given output stream, whitespace characters will be ignored.intHexEncoder. decode(String data, OutputStream out)decode the Hex encoded String data writing it to the given output stream, whitespace characters will be ignored.static intBase64. encode(byte[] data, int off, int length, OutputStream out)Encode the byte data to base 64 writing it to the given output stream.static intBase64. encode(byte[] data, OutputStream out)Encode the byte data to base 64 writing it to the given output stream.intBase64Encoder. encode(byte[] data, int off, int length, OutputStream out)encode the input data producing a base 64 output stream.intEncoder. encode(byte[] data, int off, int length, OutputStream out)static intHex. encode(byte[] data, int off, int length, OutputStream out)Hex encode the byte data writing it to the given output stream.static intHex. encode(byte[] data, OutputStream out)Hex encode the byte data writing it to the given output stream.intHexEncoder. encode(byte[] data, int off, int length, OutputStream out)encode the input data producing a Hex output stream. -
Uses of IOException in org.bouncycastle.util.io
Subclasses of IOException in org.bouncycastle.util.io Modifier and Type Class Description classStreamOverflowExceptionMethods in org.bouncycastle.util.io that throw IOException Modifier and Type Method Description voidTeeInputStream. close()voidTeeOutputStream. close()static voidStreams. drain(InputStream inStr)voidTeeOutputStream. flush()static voidStreams. pipeAll(InputStream inStr, OutputStream outStr)static longStreams. pipeAllLimited(InputStream inStr, long limit, OutputStream outStr)intTeeInputStream. read()intTeeInputStream. read(byte[] buf)intTeeInputStream. read(byte[] buf, int off, int len)static byte[]Streams. readAll(InputStream inStr)static byte[]Streams. readAllLimited(InputStream inStr, int limit)static intStreams. readFully(InputStream inStr, byte[] buf)static intStreams. readFully(InputStream inStr, byte[] buf, int off, int len)voidTeeOutputStream. write(byte[] buf)voidTeeOutputStream. write(byte[] buf, int off, int len)voidTeeOutputStream. write(int b) -
Uses of IOException in org.bouncycastle.util.io.pem
Subclasses of IOException in org.bouncycastle.util.io.pem Modifier and Type Class Description classPemGenerationExceptionMethods in org.bouncycastle.util.io.pem that throw IOException Modifier and Type Method Description ObjectPemObjectParser. parseObject(PemObject obj)PemObjectPemReader. readPemObject()voidPemWriter. writeObject(PemObjectGenerator objGen) -
Uses of IOException in org.bouncycastle.x509
Methods in org.bouncycastle.x509 that throw IOException Modifier and Type Method Description byte[]X509AttributeCertificate. getEncoded()Return an ASN.1 encoded byte array representing the attribute certificate.byte[]X509V2AttributeCertificate. getEncoded()Deprecated.Constructors in org.bouncycastle.x509 that throw IOException Constructor Description AttributeCertificateIssuer(X500Principal principal)Deprecated.X509V2AttributeCertificate(byte[] encoded)Deprecated.X509V2AttributeCertificate(InputStream encIn)Deprecated. -
Uses of IOException in org.bouncycastle.x509.extension
Methods in org.bouncycastle.x509.extension that throw IOException Modifier and Type Method Description static ASN1PrimitiveX509ExtensionUtil. fromExtensionValue(byte[] encodedValue)Constructors in org.bouncycastle.x509.extension that throw IOException Constructor Description AuthorityKeyIdentifierStructure(byte[] encodedValue)Deprecated.Constructor which will take the byte[] returned from getExtensionValue()SubjectKeyIdentifierStructure(byte[] encodedValue)Deprecated.Constructor which will take the byte[] returned from getExtensionValue() -
Uses of IOException in org.conscrypt
Subclasses of IOException in org.conscrypt Modifier and Type Class Description classEndOfBufferExceptionThis exception indicates that data could not be read from the stream because the underlying input stream reached its end.classEndOfSourceExceptionThis exception indicates that data could not be read from the buffered stream because underlying data buffer was exhausted.Methods in org.conscrypt that throw IOException Modifier and Type Method Description SocketOpenSSLServerSocketImpl. accept()SocketSSLServerSocketImpl. accept()This method works according to the specification of implemented class.intSSLBufferedInput. available()abstract intSSLInputStream. available()intSSLSocketInputStream. available()Returns the number of bytes available for reading without blocking.intSSLStreamedInput. available()voidOpenSSLSocketImplWrapper. bind(SocketAddress sockaddr)voidSSLSocketWrapper. bind(SocketAddress sockaddr)static voidNativeCrypto. BIO_write(long bioRef, byte[] buffer, int offset, int length)voidOpenSSLSocketImpl. close()voidSSLSocketImpl. close()This method works according to the specification of implemented class.voidSSLSocketInputStream. close()Closes the streamprotected voidSSLSocketImpl. closeTransportLayer()Closes the transport data streams.protected voidSSLSocketWrapper. closeTransportLayer()voidOpenSSLSocketImplWrapper. connect(SocketAddress sockaddr)voidOpenSSLSocketImplWrapper. connect(SocketAddress sockaddr, int timeout)voidSSLSocketImpl. connect(SocketAddress endpoint)This method works according to the specification of implemented class.voidSSLSocketImpl. connect(SocketAddress endpoint, int timeout)This method works according to the specification of implemented class.voidSSLSocketWrapper. connect(SocketAddress sockaddr)voidSSLSocketWrapper. connect(SocketAddress sockaddr, int timeout)ServerSocketOpenSSLServerSocketFactoryImpl. createServerSocket()ServerSocketOpenSSLServerSocketFactoryImpl. createServerSocket(int port)ServerSocketOpenSSLServerSocketFactoryImpl. createServerSocket(int port, int backlog)ServerSocketOpenSSLServerSocketFactoryImpl. createServerSocket(int port, int backlog, InetAddress iAddress)ServerSocketSSLServerSocketFactoryImpl. createServerSocket()ServerSocketSSLServerSocketFactoryImpl. createServerSocket(int port)ServerSocketSSLServerSocketFactoryImpl. createServerSocket(int port, int backlog)ServerSocketSSLServerSocketFactoryImpl. createServerSocket(int port, int backlog, InetAddress iAddress)SocketOpenSSLSocketFactoryImpl. createSocket()SocketOpenSSLSocketFactoryImpl. createSocket(String host, int port)SocketOpenSSLSocketFactoryImpl. createSocket(String host, int port, InetAddress localHost, int localPort)SocketOpenSSLSocketFactoryImpl. createSocket(InetAddress host, int port)SocketOpenSSLSocketFactoryImpl. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)SocketOpenSSLSocketFactoryImpl. createSocket(Socket s, String host, int port, boolean autoClose)SocketSSLSocketFactoryImpl. createSocket()SocketSSLSocketFactoryImpl. createSocket(String host, int port)SocketSSLSocketFactoryImpl. createSocket(String host, int port, InetAddress localHost, int localPort)SocketSSLSocketFactoryImpl. createSocket(InetAddress host, int port)SocketSSLSocketFactoryImpl. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)SocketSSLSocketFactoryImpl. createSocket(Socket s, String host, int port, boolean autoClose)voidTrustedCertificateStore. deleteCertificateEntry(String alias)This could be considered the implementation ofTrustedCertificateKeyStoreSpi.engineDeleteEntrybut we considerTrustedCertificateKeyStoreSpito be read only.InputStreamOpenSSLSocketImpl. getInputStream()InputStreamSSLSocketImpl. getInputStream()This method works according to the specification of implemented class.OutputStreamOpenSSLSocketImpl. getOutputStream()OutputStreamSSLSocketImpl. getOutputStream()This method works according to the specification of implemented class.intOpenSSLBIOInputStream. gets(byte[] buffer)Similar to areadLinemethod, but matches what OpenSSL expects from aBIO_getsmethod.protected voidSSLSocketImpl. init()Initialize the SSL socket.protected voidSSLSocketImpl. initTransportLayer()Initialize the transport data streams.protected voidSSLSocketWrapper. initTransportLayer()voidTrustedCertificateStore. installCertificate(X509Certificate cert)This non-KeyStoreSpipublic interface is used by theKeyChainServiceto install new CA certificates.protected voidSSLSocketImpl. needAppData()This method is called by SSLSocketInputStream class when client application tries to read application data from the stream, but there is no data in its underlying buffer.intHandshakeIODataStream. read()read an opaque value;intHandshakeIODataStream. read(byte[] dst, int offset, int length)byte[]HandshakeIODataStream. read(int length)reads vector of opaque valuesintSSLBufferedInput. read()Reads the following byte value.abstract intSSLInputStream. read()Reads the following byte value.intSSLInputStream. read(byte[] b, int off, int len)byte[]SSLInputStream. read(int length)Returns the vector of opaque values of specified length;intSSLSocketInputStream. read()Reads one byte.intSSLSocketInputStream. read(byte[] b, int off, int len)intSSLStreamedInput. read()Read an opaque value from the stream.intSSLInputStream. readUint16()Reads and returns uint16 value.intSSLInputStream. readUint24()Reads and returns uint24 value.longSSLInputStream. readUint32()Reads and returns uint32 value.longSSLInputStream. readUint64()Reads and returns uint64 value.intSSLInputStream. readUint8()Reads and returns uint8 value.voidOpenSSLSocketImpl. sendUrgentData(int data)voidSSLSocketImpl. sendUrgentData(int data)This method is not supported for SSLSocket implementation.static intNativeCrypto. SSL_read(long sslNativePointer, FileDescriptor fd, NativeCrypto.SSLHandshakeCallbacks shc, byte[] b, int off, int len, int readTimeoutMillis)Reads with the native SSL_read function from the encrypted data streamstatic voidNativeCrypto. SSL_shutdown(long sslNativePointer, FileDescriptor fd, NativeCrypto.SSLHandshakeCallbacks shc)static voidNativeCrypto. SSL_write(long sslNativePointer, FileDescriptor fd, NativeCrypto.SSLHandshakeCallbacks shc, byte[] b, int off, int len, int writeTimeoutMillis)Writes with the native SSL_write function to the encrypted data stream.voidOpenSSLSocketImpl. startHandshake()Starts a TLS/SSL handshake on this connection using some native methods from the OpenSSL library.voidSSLSocketImpl. startHandshake()Performs the handshake process over the SSL/TLS connection as described in rfc 2246, TLS v1 specification http://www.ietf.org/rfc/rfc2246.txt.protected intSSLRecordProtocol. unwrap()Retrieves the fragment field of TLSCiphertext, and than depending on the established Connection State decrypts and decompresses it.static SSLClientSessionCacheFileClientSessionCache. usingDirectory(File directory)Returns a cache backed by the given directory.voidSSLSocketOutputStream. write(byte[] b, int off, int len)voidSSLSocketOutputStream. write(int b)protected voidSSLSocketImpl. writeAppData(byte[] data, int offset, int len)This method is called by SSLSocketOutputStream when a client application tries to send the data over ssl protocol.Constructors in org.conscrypt that throw IOException Constructor Description CertificateMessage(HandshakeIODataStream in, int length)Creates inbound messageCertificateRequest(HandshakeIODataStream in, int length)Creates inbound messageCertificateVerify(HandshakeIODataStream in, int length)Creates inbound messageClientHello(HandshakeIODataStream in)Parse V2ClientHelloClientHello(HandshakeIODataStream in, int length)Creates inbound messageClientKeyExchange(HandshakeIODataStream in, int length, boolean isTLS, boolean isRSA)Creates inbound messageDefaultSSLContextImpl()DefaultSSLContextImpl delegates the work to the super class since there is no way to put a synchronized around both the call to super and the rest of this constructor to guarantee that we don't have races in creating the state shared between all default SSLContexts.Finished(HandshakeIODataStream in, int length)Creates inbound messageHelloRequest(HandshakeIODataStream in, int length)Creates inbound messageOpenSSLContextImpl(DefaultSSLContextImpl dummy)OpenSSLServerSocketImpl(int port, int backlog, InetAddress iAddress, SSLParametersImpl sslParameters)OpenSSLServerSocketImpl(int port, int backlog, SSLParametersImpl sslParameters)OpenSSLServerSocketImpl(int port, SSLParametersImpl sslParameters)OpenSSLServerSocketImpl(SSLParametersImpl sslParameters)OpenSSLSocketImpl(String host, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters)OpenSSLSocketImpl(String host, int port, SSLParametersImpl sslParameters)OpenSSLSocketImpl(InetAddress address, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters)OpenSSLSocketImpl(InetAddress address, int port, SSLParametersImpl sslParameters)OpenSSLSocketImpl(Socket socket, String host, int port, boolean autoClose, SSLParametersImpl sslParameters)Create an SSL socket that wraps another socket.OpenSSLSocketImpl(SSLParametersImpl sslParameters)OpenSSLSocketImpl(SSLParametersImpl sslParameters, String[] enabledProtocols, String[] enabledCipherSuites)OpenSSLSocketImplWrapper(Socket socket, String host, int port, boolean autoClose, SSLParametersImpl sslParameters)ServerHello(HandshakeIODataStream in, int length)Creates inbound messageServerHelloDone(HandshakeIODataStream in, int length)Creates inbound messageServerKeyExchange(HandshakeIODataStream in, int length, int keyExchange)Creates inbound messageSSLContextImpl(DefaultSSLContextImpl dummy)Constuctor for the DefaultSSLContextImpl.SSLServerSocketImpl(int port, int backlog, InetAddress iAddress, SSLParametersImpl sslParameters)CtorSSLServerSocketImpl(int port, int backlog, SSLParametersImpl sslParameters)CtorSSLServerSocketImpl(int port, SSLParametersImpl sslParameters)CtorSSLServerSocketImpl(SSLParametersImpl sslParameters)CtorSSLSocketImpl(String host, int port, InetAddress localHost, int localPort, SSLParametersImpl sslParameters)ConstructorSSLSocketImpl(String host, int port, SSLParametersImpl sslParameters)ConstructorSSLSocketImpl(InetAddress address, int port, InetAddress localAddress, int localPort, SSLParametersImpl sslParameters)ConstructorSSLSocketImpl(InetAddress host, int port, SSLParametersImpl sslParameters)ConstructorSSLSocketWrapper(Socket socket, String host, int port, boolean autoClose, SSLParametersImpl sslParameters) -
Uses of IOException in org.kxml2.io
Methods in org.kxml2.io that throw IOException Modifier and Type Method Description XmlSerializerKXmlSerializer. attribute(String namespace, String name, String value)voidKXmlSerializer. cdsect(String data)voidKXmlParser. close()voidKXmlSerializer. comment(String comment)voidKXmlSerializer. docdecl(String dd)voidKXmlSerializer. endDocument()XmlSerializerKXmlSerializer. endTag(String namespace, String name)voidKXmlSerializer. entityRef(String name)voidKXmlSerializer. flush()voidKXmlSerializer. ignorableWhitespace(String s)intKXmlParser. next()intKXmlParser. nextTag()StringKXmlParser. nextText()intKXmlParser. nextToken()voidKXmlSerializer. processingInstruction(String pi)voidKXmlParser. require(int type, String namespace, String name)voidKXmlSerializer. setOutput(OutputStream os, String encoding)voidKXmlSerializer. setPrefix(String prefix, String namespace)voidKXmlSerializer. startDocument(String encoding, Boolean standalone)XmlSerializerKXmlSerializer. startTag(String namespace, String name)XmlSerializerKXmlSerializer. text(char[] text, int start, int len)XmlSerializerKXmlSerializer. text(String text) -
Uses of IOException in org.xml.sax
Methods in org.xml.sax that throw IOException Modifier and Type Method Description voidParser. parse(String systemId)Deprecated.Parse an XML document from a system identifier (URI).voidParser. parse(InputSource source)Deprecated.Parse an XML document.voidXMLReader. parse(String systemId)Parse an XML document from a system identifier (URI).voidXMLReader. parse(InputSource input)Parse an XML document.InputSourceEntityResolver. resolveEntity(String publicId, String systemId)Allow the application to resolve external entities. -
Uses of IOException in org.xml.sax.ext
Methods in org.xml.sax.ext that throw IOException Modifier and Type Method Description InputSourceDefaultHandler2. getExternalSubset(String name, String baseURI)Tells the parser that if no external subset has been declared in the document text, none should be used.InputSourceEntityResolver2. getExternalSubset(String name, String baseURI)Allows applications to provide an external subset for documents that don't explicitly define one.InputSourceDefaultHandler2. resolveEntity(String publicId, String systemId)InvokesEntityResolver2.resolveEntity()with null entity name and base URI.InputSourceDefaultHandler2. resolveEntity(String name, String publicId, String baseURI, String systemId)Tells the parser to resolve the systemId against the baseURI and read the entity text from that resulting absolute URI.InputSourceEntityResolver2. resolveEntity(String name, String publicId, String baseURI, String systemId)Allows applications to map references to external entities into input sources, or tell the parser it should use conventional URI resolution. -
Uses of IOException in org.xml.sax.helpers
Methods in org.xml.sax.helpers that throw IOException Modifier and Type Method Description voidParserAdapter. parse(String systemId)Parse an XML document.voidParserAdapter. parse(InputSource input)Parse an XML document.voidXMLFilterImpl. parse(String systemId)Parse a document.voidXMLFilterImpl. parse(InputSource input)Parse a document.voidXMLReaderAdapter. parse(String systemId)Parse the document.voidXMLReaderAdapter. parse(InputSource input)Parse the document.InputSourceDefaultHandler. resolveEntity(String publicId, String systemId)Resolve an external entity.InputSourceXMLFilterImpl. resolveEntity(String publicId, String systemId)Filter an external entity resolution. -
Uses of IOException in org.xmlpull.v1
Methods in org.xmlpull.v1 that throw IOException Modifier and Type Method Description XmlSerializerXmlSerializer. attribute(String namespace, String name, String value)Write an attribute.voidXmlSerializer. cdsect(String text)voidXmlSerializer. comment(String text)voidXmlSerializer. docdecl(String text)voidXmlSerializer. endDocument()Finish writing.XmlSerializerXmlSerializer. endTag(String namespace, String name)Write end tag.voidXmlSerializer. entityRef(String text)voidXmlSerializer. flush()Write all pending output to the stream.voidXmlSerializer. ignorableWhitespace(String text)intXmlPullParser. next()Get next parsing event - element content wil be coalesced and only one TEXT event must be returned for whole element content (comments and processing instructions will be ignored and entity references must be expanded or exception mus be thrown if entity reference can not be expanded).intXmlPullParser. nextTag()Call next() and return event if it is START_TAG or END_TAG otherwise throw an exception.StringXmlPullParser. nextText()If current event is START_TAG then if next element is TEXT then element content is returned or if next event is END_TAG then empty string is returned, otherwise exception is thrown.intXmlPullParser. nextToken()This method works similarly to next() but will expose additional event types (COMMENT, CDSECT, DOCDECL, ENTITY_REF, PROCESSING_INSTRUCTION, or IGNORABLE_WHITESPACE) if they are available in input.voidXmlSerializer. processingInstruction(String text)voidXmlPullParser. require(int type, String namespace, String name)Test if the current event is of the given type and if the namespace and name do match.voidXmlSerializer. setOutput(OutputStream os, String encoding)Set to use binary output stream with given encoding.voidXmlSerializer. setOutput(Writer writer)Set the output to the given writer.voidXmlSerializer. setPrefix(String prefix, String namespace)Binds the given prefix to the given namespace.voidXmlSerializer. startDocument(String encoding, Boolean standalone)Write <?xml declaration with encoding (if encoding not null) and standalone flag (if standalone not null) This method can only be called just after setOutput.XmlSerializerXmlSerializer. startTag(String namespace, String name)Writes a start tag with the given namespace and name.XmlSerializerXmlSerializer. text(char[] buf, int start, int len)Writes text, where special XML chars are escaped automaticallyXmlSerializerXmlSerializer. text(String text)Writes text, where special XML chars are escaped automatically -
Uses of IOException in org.xmlpull.v1.sax2
Methods in org.xmlpull.v1.sax2 that throw IOException Modifier and Type Method Description voidDriver. parse(String systemId)voidDriver. parse(InputSource source)voidDriver. parseSubTree(XmlPullParser pp)