SunSPOT API V3.0


Uses of Class
java.io.IOException

Packages that use IOException
com.sun.spot.flashmanagement Low level access to chunks of flash memory. 
com.sun.spot.io.j2me.memory Support for the "memory" GCF protocol. 
com.sun.spot.io.j2me.radiogram Support for the 'radiogram' GCF protocol. 
com.sun.spot.io.j2me.radiostream Support for the 'radiostream' GCF Protocol. 
com.sun.spot.io.j2me.remoteprinting Provides the auxiliary classes used by remote printing. 
com.sun.spot.io.j2me.socket Support for the "socket" GCF protocol. 
com.sun.spot.peripheral Access to the hardware peripherals built in to the Sun SPOT main board. 
com.sun.spot.peripheral.basestation Code to allow the Sun SPOT to function as a base station. 
com.sun.spot.peripheral.external Generic support for external boards. 
com.sun.spot.peripheral.ota Support for managing remote Sun SPOTs using ant scripts. 
com.sun.spot.peripheral.radio Support for using the Sun SPOT's radio. 
com.sun.spot.sensorboard Contains highest level interfaces and concrete classes that make up the SunSPOT sensorboard libraries. 
com.sun.spot.sensorboard.io Interfaces and concrete implmentations of classes to enable simple low-level i/o to and from the SunSPOT sensorboards. 
com.sun.spot.sensorboard.peripheral Interfaces and concrete implementations of various peripherals that are either connected to or built into the daughter cards. 
com.sun.spot.sensorboard.protocol Collection of some simple classes that define external protocols that can be attached to SunSPOT daughtercards. 
com.sun.spot.util Utility classes. 
com.sun.squawk Provides classes for low level interactions with the Squawk VM. 
com.sun.squawk.io Provides classes for input and output through data streams. 
com.sun.squawk.io.j2me.edemoserial The serial protocol supports read/write access to the usart module on the Atmega88 for spot applications. 
com.sun.squawk.io.j2me.multicast   
com.sun.squawk.io.j2me.radiogram The radiogram protocol supports datagram communication between two Sun SPOTs via the radio. 
com.sun.squawk.io.j2me.remoteprint Provides the Protocol class to implement a "remoteprint:" connection using the J2ME Generic Connection Framework (GCF). 
com.sun.squawk.io.j2me.serial The serial protocol supports read/write access to the USB channel to host applications. 
com.sun.squawk.io.j2me.socket The socket protocol supports read/write access to an arbitrary socket on a host computer. 
com.sun.squawk.io.mailboxes Provides classes for inter-Isolate communication. 
com.sun.squawk.peripheral   
com.sun.squawk.security.verifier Provides classes for basic signing of binary data. 
com.sun.squawk.util Provides classes for basic utilities sometimes jound in JSE. 
java.io Provides classes for input and output through data streams. 
javax.microedition.io Classes for the Generic Connection framework. 
 

Uses of IOException in com.sun.spot.flashmanagement
 

Subclasses of IOException in com.sun.spot.flashmanagement
 class FlashFileNotFoundException
           
 

Methods in com.sun.spot.flashmanagement that throw IOException
 void FlashFileOutputStream.close()
           
 void FlashFile.commit()
          Ensure all changes to this file's descriptor are written persistently.
 void FlashFile.delete()
          Delete the file with this name
 void FlashFileOutputStream.flush()
           
 int FlashFile.getAllocatedSpace()
          Determine the space allocated for the file with this name
 String IFlashFileInfo.getComment()
          Get the comment for this file
 String FlashFile.getComment()
          Get the comment for this file
 int FlashFile.getFirstSectorBaseAddress()
          For test purposes only
 INorFlashSector[] NorFlashSectorAllocator.getInitialSectors(int purpose)
           
 int IFlashFileInfo.getVirtualAddress()
          Get the virtual address of a mapped file
 int FlashFile.getVirtualAddress()
          Get the virtual address of a mapped file
 boolean FlashFile.isAddressed()
          Check whether this file has a virtual address.
 boolean FlashFile.isMapped()
          Check whether this file is mapped.
 boolean IFlashFileInfo.isObsolete()
          Check whether the file with this name is obsolete
 boolean FlashFile.isObsolete()
          Check whether the file with this name is obsolete
 long IFlashFileInfo.lastModified()
          Get the time at which this file was last modified
 long FlashFile.lastModified()
          Get the time at which this file was last modified
 int IFlashFileInfo.length()
          Get the length of the file with this name
 int FlashFile.length()
          Get the length of the file with this name
 void FlashFile.map()
          Cause the file with this name to become a mapped file.
 int FlashFileInputStream.read()
           
 int FlashFileInputStream.read(byte[] b, int off, int len)
           
 boolean FlashFile.renameTo(FlashFile dest)
          Rename the file with this name so that it has a different name
static void FlashFile.resetFAT()
          Overwrite the existing FAT with a new empty one.
 void FlashFile.setComment(String comment)
          Set a comment for this file
static void FlashFile.setNorFlashSectorFactory(INorFlashSectorFactory norFlashSectorFactory)
          Set the INorFlashSectorFactory to be used by FlashFile when creating a FlashManager.
 void FlashFile.setObsolete(boolean b)
          Set whether or not the file with this name is obsolete.
 void FlashFile.setVirtualAddress(int virtualAddress)
          Set the virtual address that the file gets mapped to.
 void FlashFileOutputStream.write(int b)
           
 

Constructors in com.sun.spot.flashmanagement that throw IOException
FlashFileInputStream(FlashFile file)
          Construct an input stream over the data previously written to a FlashFile
 

Uses of IOException in com.sun.spot.io.j2me.memory
 

Methods in com.sun.spot.io.j2me.memory that throw IOException
 int MemoryInputStream.read(byte[] b, int off, int len)
           
 

Uses of IOException in com.sun.spot.io.j2me.radiogram
 

Methods in com.sun.spot.io.j2me.radiogram that throw IOException
 int Radiogram.available()
           
 void RadiogramConnImpl.close()
           
 Connection RadiogramConnImpl.open(String arg0, String arg1, int arg2, boolean arg3)
           
 boolean Radiogram.readBoolean()
           
 byte Radiogram.readByte()
           
 char Radiogram.readChar()
           
 double Radiogram.readDouble()
           
 float Radiogram.readFloat()
           
 void Radiogram.readFully(byte[] b)
           
 void Radiogram.readFully(byte[] b, int off, int len)
           
 int Radiogram.readInt()
           
 long Radiogram.readLong()
           
 short Radiogram.readShort()
           
 int Radiogram.readUnsignedByte()
           
 int Radiogram.readUnsignedShort()
           
 String Radiogram.readUTF()
           
 void RadiogramConnImpl.receive(Datagram dgram)
           
 void Radiogram.resetRead()
          Ensures that the next read operation will read from the start of the radiogram
 int Radiogram.skipBytes(int n)
           
 void Radiogram.write(byte[] b)
           
 void Radiogram.write(byte[] b, int off, int len)
           
 void Radiogram.write(int b)
           
 void Radiogram.writeBoolean(boolean v)
           
 void Radiogram.writeByte(int v)
           
 void Radiogram.writeChar(int v)
           
 void Radiogram.writeChars(String s)
           
 void Radiogram.writeDouble(double v)
           
 void Radiogram.writeFloat(float v)
           
 void Radiogram.writeInt(int v)
           
 void Radiogram.writeLong(long v)
           
 void Radiogram.writeShort(int v)
           
 void Radiogram.writeUTF(String str)
           
 

Uses of IOException in com.sun.spot.io.j2me.radiostream
 

Methods in com.sun.spot.io.j2me.radiostream that throw IOException
 int RadioInputStream.available()
          Return the number of bytes available to be read from the stream without blocking.
 void RadioOutputStream.close()
           
 void RadioInputStream.close()
           
 int RadioInputStream.read()
           
 

Uses of IOException in com.sun.spot.io.j2me.remoteprinting
 

Methods in com.sun.spot.io.j2me.remoteprinting that throw IOException
 void RemotePrintOutputStream.close()
          Close this OutputStream along with the underlying RadioOutputStream.
 void RemotePrintOutputStream.flush()
          Flush any characters in our buffer, sending them over the radio to the remote print server.
 void RemotePrintOutputStream.write(int arg0)
          Writes out a character, flushing the buffer if a newline.
 

Uses of IOException in com.sun.spot.io.j2me.socket
 

Methods in com.sun.spot.io.j2me.socket that throw IOException
 void SocketProtocolOutputStream.close()
          Close the OutputStream
 void SocketProtocolInputStream.close()
          Close the InputStream.
 void SocketConnection.close()
          Disconnect and close the SocketConnection.
 void SocketProtocolOutputStream.flush()
          Flush the stream.
 com.sun.spot.io.j2me.socket.SocketConnection.SocketInputStream SocketConnection.getInputStream()
          Get a SocketInputStream object associated to this conneciton.
 com.sun.spot.io.j2me.socket.SocketConnection.SocketOutputStream SocketConnection.getOutputStream()
          Get a SocketOutputStream object associated to this conneciton.
 int SocketProtocolInputStream.read()
          Read data from the stream.
 void SocketProtocolOutputStream.write(int data)
          Write data in the stream.
 void SocketProtocolOutputStream.writeError(String message)
          Write an error to the stream.
 

Constructors in com.sun.spot.io.j2me.socket that throw IOException
SocketConnection(ProxyInitializer initializer, boolean timeouts)
          Create a SocketConnection object.
 

Uses of IOException in com.sun.spot.peripheral
 

Subclasses of IOException in com.sun.spot.peripheral
 class ChannelBusyException
          Thrown when an attempt to transmit over the radio fails because the channel is busy - and remains busy for a full set of retries.
 class NoAckException
          Thrown when an attempt to transmit over the radio fails because no acknowledgement is received within the time limit specified in the I802.15.4 standard.
 class NoRouteException
           
 class TimeoutException
          Thrown when an attempt to receive data over either a "radiostream:" or "radiogram:" connection fails due to a read timeout being exceeded.
 

Methods in com.sun.spot.peripheral that throw IOException
 int BoundedInputStream.available()
           
 void BoundedOutputStream.close()
           
 void BoundedInputStream.close()
           
 void BoundedOutputStream.flush()
           
 OTACommandServer Spot.getOTACommandServer()
           
 OTACommandServer ISpot.getOTACommandServer()
          Get the OTA Command Server, creating one if necessary
 int BoundedInputStream.read()
           
 void Spot.storeProperties(Properties props)
           
 void ISpot.storeProperties(Properties props)
          Replace the persistent properties held in the flash memory
 void BoundedOutputStream.write(byte[] b)
           
 void BoundedOutputStream.write(byte[] b, int off, int len)
           
 void BoundedOutputStream.write(int b)
           
 

Constructors in com.sun.spot.peripheral that throw IOException
BoundedInputStream(InputStream in)
          Construct an instance based on the supplied parent InputStream.
 

Uses of IOException in com.sun.spot.peripheral.basestation
 

Methods in com.sun.spot.peripheral.basestation that throw IOException
static void BaseStation.main(String[] args)
          A main method that allows this class to be used as a startup class
 void SetPLMETransmitPowerCommand.populateFrom(byte[] inputBuffer, int startingOffset)
           
 void MLMEStartCommand.populateFrom(byte[] inputBuffer, int startingOffset)
           
 void MLMESetCommand.populateFrom(byte[] inputBuffer, int startingOffset)
           
 void MLMERxEnableCommand.populateFrom(byte[] inputBuffer, int startingOffset)
           
 void MLMEResetCommand.populateFrom(byte[] inputBuffer, int startingOffset)
           
 void MLMEGetCommand.populateFrom(byte[] inputBuffer, int startingOffset)
           
 void MCPSDataRequestCommand.populateFrom(byte[] inputBuffer, int startingOffset)
           
 void MACCommand.populateFrom(byte[] inputBuffer, int startingOffset)
           
 void ICommand.populateFrom(byte[] inputBuffer, int startingOffset)
           
protected  Object NoArgIntParameterCommand.readResultFrom(DataInputStream dataInputStream)
           
protected  Object MLMEGetCommand.readResultFrom(DataInputStream dataInputStream)
           
protected  Object MCPSDataRequestCommand.readResultFrom(DataInputStream dataInputStream)
           
protected  Object MCPSDataIndicationCommand.readResultFrom(DataInputStream dataInputStream)
           
protected  Object MACCommand.readResultFrom(DataInputStream dataInputStream)
           
 void MACProxyServer.reset(I802_15_4_MAC mac)
           
 void MACCommand.writeOnto(DataOutputStream dataOutputStream)
           
 void ICommand.writeOnto(DataOutputStream dataOutputStream)
           
protected  void SetPLMETransmitPowerCommand.writeParametersOnto(DataOutputStream dataOutputStream)
           
protected  void MLMEStartCommand.writeParametersOnto(DataOutputStream dataOutputStream)
           
protected  void MLMESetCommand.writeParametersOnto(DataOutputStream dataOutputStream)
           
protected  void MLMERxEnableCommand.writeParametersOnto(DataOutputStream dataOutputStream)
           
protected  void MLMEResetCommand.writeParametersOnto(DataOutputStream dataOutputStream)
           
protected  void MLMEGetCommand.writeParametersOnto(DataOutputStream dataOutputStream)
           
protected  void MCPSDataRequestCommand.writeParametersOnto(DataOutputStream dataOutputStream)
           
protected  void MACCommand.writeParametersOnto(DataOutputStream dataOutputStream)
           
protected  int NoArgIntParameterCommand.writePreparedResult(byte[] outputBuffer, int startingOffset)
           
protected  int MLMEGetCommand.writePreparedResult(byte[] outputBuffer, int startingOffset)
           
protected  int MCPSDataRequestCommand.writePreparedResult(byte[] outputBuffer, int startingOffset)
           
protected  int MCPSDataIndicationCommand.writePreparedResult(byte[] outputBuffer, int startingOffset)
           
protected  int MACCommand.writePreparedResult(byte[] outputBuffer, int startingOffset)
           
 int MACCommand.writeResultOnto(byte[] outputBuffer, int startingOffset, I802_15_4_MAC mac)
           
 int ICommand.writeResultOnto(byte[] outputBuffer, int startingOffset, I802_15_4_MAC mac)
          Write the result onto the outputBuffer byte array, starting at startingOffset.
 

Uses of IOException in com.sun.spot.peripheral.external
 

Methods in com.sun.spot.peripheral.external that throw IOException
 void IExternalBoard.setProperties(Properties p)
          Set the properties of this board
 void ExternalBoard.setProperties(Properties p)
          Set the properties of this board
 

Uses of IOException in com.sun.spot.peripheral.ota
 

Methods in com.sun.spot.peripheral.ota that throw IOException
 void IOTACommandHelper.doDefaultCommand(String cmd, DataInputStream params)
          Invoke the default behaviour for one of the built-in commands.
static OTACommandServer OTACommandServer.getInstance()
           
 boolean IOTACommand.processCommand(String command, DataInputStream params, IOTACommandHelper helper)
          Attempt to process a command.
 void IOTACommandHelper.receiveDataWithFlowControl(long dataSize, OutputStream outputStream)
          Receive bulk data with flow control.
 void IOTACommandHelper.replaceSuiteFile(DataInputStream params, String filename, int virtualAddress)
          Replace a suite file.
 void IOTACommandHelper.sendDataWithCRC(byte[] data, int offset, int length)
          Send data to the host with a CRC checksum appended.
 void IOTACommandHelper.sendErrorDetails(String msg)
          Notify the host that an error has occurred.
 void IOTACommandHelper.sendPrompt()
          Send a bootloader prompt to a remote SpotClient.
 byte[] OTAFlashFileInfo.toByteArray()
           
 

Constructors in com.sun.spot.peripheral.ota that throw IOException
OTAFlashFileInfo(byte[] rawInfo)
          Reconstruct an OTAFlashFileInfo from its serialised representation (see OTAFlashFileInfo.toByteArray()
OTAFlashFileInfo(IFlashFileInfo file)
          Construct a new OTAFlashFileInfo from a FlashFile
 

Uses of IOException in com.sun.spot.peripheral.radio
 

Subclasses of IOException in com.sun.spot.peripheral.radio
 class MACException
          Thrown when an I802_15_4_MAC encounters unexpected errors in received radio packet format
 class NoMeshLayerAckException
           
 

Methods in com.sun.spot.peripheral.radio that throw IOException
 int RadioInputStream.available()
          Deprecated. Return the number of bytes available to be read from the stream without blocking.
 void RadioOutputStream.close()
          Deprecated.  
 void RadioInputStream.close()
          Deprecated.  
 int RadioInputStream.read()
          Deprecated.  
 RadioPacket RadioPacket.readFrom(DataInputStream dataInputStream)
           
 RadioPacket RadioPacket.readWithoutTimestampFrom(DataInputStream dataInputStream)
           
 void SpotSerialPipe.reset()
           
 void RadioPacket.writeOnto(DataOutputStream dataOutputStream)
           
 

Constructors in com.sun.spot.peripheral.radio that throw IOException
SpotSerialPipe()
           
 

Uses of IOException in com.sun.spot.sensorboard
 

Methods in com.sun.spot.sensorboard that throw IOException
 byte EDemoController.receiveUART()
          Get the next byte from the UART.
 byte EDemoBoard.receiveUART()
          Get the next byte from the UART.
 void EDemoBoard.setProperties(Properties p)
          Set the properties of this board
 

Uses of IOException in com.sun.spot.sensorboard.io
 

Methods in com.sun.spot.sensorboard.io that throw IOException
 int ScalarInput.getRange()
          Return the maximum possible value that could be returned from the input device.
 int IScalarInput.getRange()
          Return the maximum possible value that could be returned from the input device.
 int BinaryScalar.getRange()
           
 int IScalarInput.getValue()
          Return the current value of the input.
 int BinaryScalar.getValue()
           
 

Uses of IOException in com.sun.spot.sensorboard.peripheral
 

Methods in com.sun.spot.sensorboard.peripheral that throw IOException
 double LIS3L02AQAccelerometer.getAccel()
          Compute the current total acceleration.
 double IAccelerometer3D.getAccel()
          Compute the current total acceleration.
 double LIS3L02AQAccelerometer.getAccel(int axis)
          Read the current acceleration along the indicated axis.
 double IAccelerometer3D.getAccel(int axis)
          Compute the current acceleration for the indicated axis.
 double LIS3L02AQAccelerometer.getAccelX()
          Read the current acceleration along the X axis.
 double IAccelerometer3D.getAccelX()
          Read the current acceleration along the X axis.
 double LIS3L02AQAccelerometer.getAccelY()
          Read the current acceleration along the Y axis.
 double IAccelerometer3D.getAccelY()
          Read the current acceleration along the Y axis.
 double LIS3L02AQAccelerometer.getAccelZ()
          Read the current acceleration along the Z axis.
 double IAccelerometer3D.getAccelZ()
          Read the current acceleration along the Z axis.
 int LightSensor.getAverageValue()
          Take 17 readings, one every 1 msec and average them.
 int ILightSensor.getAverageValue()
          Take 17 readings, one every 1 msec and average them.
 int LightSensor.getAverageValue(int n)
          To deal with light sources that change rapidly over time, such as fluorescent light bulbs, it is necessary to take multiple readings and average them.
 int ILightSensor.getAverageValue(int n)
          To deal with light sources that change rapidly over time, such as fluorescent light bulbs, it is necessary to take multiple readings and average them.
 double TemperatureInput.getCelsius()
          Return the current temperature in degrees Celsius.
 double ITemperatureInput.getCelsius()
          Return the current temperature in degrees Celsius.
 double TemperatureInput.getFahrenheit()
          Return the current temperature in degrees Fahrenheit.
 double ITemperatureInput.getFahrenheit()
          Return the current temperature in degrees Fahrenheit.
 double LIS3L02AQAccelerometer.getRaw(int axis)
          Read the current acceleration along the indicated axis.
 int LIS3L02AQAccelerometer.getRawX()
          Return the raw value in volts for the acceleration along the X axis.
 int LIS3L02AQAccelerometer.getRawY()
          Return the raw value in volts for the acceleration along the Y axis.
 int LIS3L02AQAccelerometer.getRawZ()
          Return the raw value in volts for the acceleration along the Z axis.
 double LIS3L02AQAccelerometer.getRelativeAccel()
          Compute the current relative total acceleration.
 double IAccelerometer3D.getRelativeAccel()
          Compute the current relative total acceleration.
 double LIS3L02AQAccelerometer.getRelativeAccel(int axis)
          Read the current relative acceleration along the indicated axis.
 double IAccelerometer3D.getRelativeAccel(int axis)
          Compute the current relative acceleration for the indicated axis.
 double LIS3L02AQAccelerometer.getRelativeAccelX()
          Read the current relative acceleration along the X axis.
 double IAccelerometer3D.getRelativeAccelX()
          Read the current relative acceleration along the X axis.
 double LIS3L02AQAccelerometer.getRelativeAccelY()
          Read the current relative acceleration along the Y axis.
 double IAccelerometer3D.getRelativeAccelY()
          Read the current relative acceleration along the Y axis.
 double LIS3L02AQAccelerometer.getRelativeAccelZ()
          Read the current relative acceleration along the Z axis.
 double IAccelerometer3D.getRelativeAccelZ()
          Read the current relative acceleration along the Z axis.
 double LIS3L02AQAccelerometer.getTilt(int axis)
          Compute the inclination of the specified SPOT axis.
 double IAccelerometer3D.getTilt(int axis)
          Compute the inclination of the specified SPOT axis.
 double LIS3L02AQAccelerometer.getTiltX()
          Compute the inclination of the SPOT's X axis.
 double IAccelerometer3D.getTiltX()
          Compute the inclination of the SPOT's X axis.
 double LIS3L02AQAccelerometer.getTiltY()
          Compute the inclination of the SPOT's Y axis.
 double IAccelerometer3D.getTiltY()
          Compute the inclination of the SPOT's Y axis.
 double LIS3L02AQAccelerometer.getTiltZ()
          Compute the inclination of the SPOT's Z axis.
 double IAccelerometer3D.getTiltZ()
          Compute the inclination of the SPOT's Z axis.
 void LIS3L02AQAccelerometer.setRestOffsets()
          Compute the current acceleration along each axis and save it.
 void IAccelerometer3D.setRestOffsets()
          Compute the current acceleration along each axis and save it.
 

Uses of IOException in com.sun.spot.sensorboard.protocol
 

Methods in com.sun.spot.sensorboard.protocol that throw IOException
 boolean II2C.isIdle()
          Check if the connection is idle
 boolean AT91_I2C.isIdle()
           
 byte II2C.receive(boolean ack)
           
 byte AT91_I2C.receive(boolean ack)
           
 void II2C.start()
          Generates the starting bit-sequence
 void AT91_I2C.start()
           
 void II2C.stop()
          Generates the stopping bit-sequence
 void AT91_I2C.stop()
           
 boolean II2C.transmit(byte d)
           
 boolean AT91_I2C.transmit(byte d)
           
 

Constructors in com.sun.spot.sensorboard.protocol that throw IOException
AT91_I2C(IAT91_PIO pio, int sdaPin, int sclPin)
          Constructor.
 

Uses of IOException in com.sun.spot.util
 

Methods in com.sun.spot.util that throw IOException
static short CRC.crc(InputStream stream, int flashedByteCount)
          Return the CRC value of the specified number of bytes from an InputStream.
static byte[] Utils.getDataWithCRC(DataInputStream dataInputStream)
          Read data from a stream, checking the CRC.
 void Properties.load(InputStream inStream)
          Reads a property list (key and element pairs) from the input stream.
static void DummyApp.main(String[] args)
          A main method that allows this class to be used as a startup class
static void Utils.putDataWithCRC(DataOutputStream dataOutputStream, byte[] data, int offset, int length)
          Put data onto a stream, adding a CRC.
 void Properties.store(OutputStream out, String header)
          Store a representation of these properties on a stream
 

Uses of IOException in com.sun.squawk
 

Methods in com.sun.squawk that throw IOException
static int VM.execIO(int op, int channel, int i1, int i2, int i3, int i4, int i5, int i6, Object send, Object receive)
          Executes a I/O operation that may block.
static long VM.execIOLong(int op, int channel, int i1, int i2, int i3, int i4, int i5, int i6, Object send, Object receive)
          Executes an I/O operation that returns a long value.
static Address VM.execMessageIO(int op, Object key, Object data, int status)
          Executes a message I/O operation.
 void Isolate.hibernate()
          Hibernate the isolate.
 void Isolate.save(DataOutputStream dos, String uri)
          Serializes the object graph rooted by this hibernated isolate and writes it to a given stream.
 void Isolate.save(DataOutputStream dos, String uri, boolean bigEndian)
          Serializes the object graph rooted by this hibernated isolate and writes it to a given stream.
static void VM.waitForInterrupt(int irq)
          Waits for an interrupt.
 

Uses of IOException in com.sun.squawk.io
 

Methods in com.sun.squawk.io that throw IOException
 void BufferedReader.close()
          Close the stream.
 void BufferedWriter.close()
          Close the stream.
 void ConnectionBase.close()
          Close
 void MulticastOutputStream.close()
          Closes this output stream and releases any system resources associated with this stream. The close method of MulticastOutputStream invokes the close method of all the contained streams and then removes them from this multicaster.
 void BufferedWriter.flush()
          Flush the stream.
 void MulticastOutputStream.flush()
          Flushes this output stream and forces any buffered output bytes to be written out. The flush method of MulticastOutputStream invokes the flush method of all the contained streams.
 void BufferedReader.mark(int readAheadLimit)
          Mark the present position in the stream.
 void BufferedWriter.newLine()
          Write a line separator.
abstract  Connection ConnectionBase.open(String protocol, String name, int mode, boolean timeouts)
          Open a connection to a target.
 DataInputStream ConnectionBase.openDataInputStream()
          Create and open a connection input stream.
 DataOutputStream ConnectionBase.openDataOutputStream()
          Create and open a connection output stream.
 InputStream ConnectionBase.openInputStream()
          Open and return a data input stream for a connection.
 OutputStream ConnectionBase.openOutputStream()
          Open and return a data output stream for a connection.
 int BufferedReader.read()
          Read a single character.
 int BufferedReader.read(char[] cbuf, int off, int len)
          Read characters into a portion of an array.
 String BufferedReader.readLine()
          Read a line of text.
 boolean BufferedReader.ready()
          Tell whether this stream is ready to be read.
 void BufferedReader.reset()
          Reset the stream to the most recent mark.
 long BufferedReader.skip(long n)
          Skip characters.
 void MulticastOutputStream.write(byte[] b, int off, int len)
          Writes len bytes from the specified byte array starting at offset off to this output stream. The close method of MulticastOutputStream invokes the write(byte[], int, int) method of all the contained streams.
 void BufferedWriter.write(char[] cbuf, int off, int len)
          Write a portion of an array of characters.
 void BufferedWriter.write(int c)
          Write a single character.
 void MulticastOutputStream.write(int b)
          Writes the specified byte to this output stream. The close method of MulticastOutputStream invokes the write(byte) method of all the contained streams.
 void BufferedWriter.write(String s, int off, int len)
          Write a portion of a String.
 

Uses of IOException in com.sun.squawk.io.j2me.edemoserial
 

Methods in com.sun.squawk.io.j2me.edemoserial that throw IOException
 void Protocol.close()
           
 Connection Protocol.open(String protocol, String name, int mode, boolean timeouts)
           
 InputStream Protocol.openInputStream()
           
 OutputStream Protocol.openOutputStream()
           
 

Uses of IOException in com.sun.squawk.io.j2me.multicast
 

Methods in com.sun.squawk.io.j2me.multicast that throw IOException
 Connection Protocol.open(String protocol, String name, int mode, boolean timeouts)
          Opens the connection.
 OutputStream Protocol.openOutputStream()
          Opens and returns an output stream for this connection.
 

Uses of IOException in com.sun.squawk.io.j2me.radiogram
 

Methods in com.sun.squawk.io.j2me.radiogram that throw IOException
 void Protocol.close()
           
 

Uses of IOException in com.sun.squawk.io.j2me.remoteprint
 

Methods in com.sun.squawk.io.j2me.remoteprint that throw IOException
 void Protocol.close()
          Close this remoteprint connection.
 

Uses of IOException in com.sun.squawk.io.j2me.serial
 

Methods in com.sun.squawk.io.j2me.serial that throw IOException
 void Protocol.close()
           
 Connection Protocol.open(String protocol, String name, int mode, boolean timeouts)
           
 InputStream Protocol.openInputStream()
           
 OutputStream Protocol.openOutputStream()
           
 

Uses of IOException in com.sun.squawk.io.j2me.socket
 

Methods in com.sun.squawk.io.j2me.socket that throw IOException
 void Protocol.close()
          Close the connection.
 Connection Protocol.open(String protocol, String name, int mode, boolean timeouts)
          Open the connection
 InputStream Protocol.openInputStream()
          Returns an input stream for this socket.
 OutputStream Protocol.openOutputStream()
          Returns an output stream for this socket.
 

Uses of IOException in com.sun.squawk.io.mailboxes
 

Subclasses of IOException in com.sun.squawk.io.mailboxes
 class AddressClosedException
          This exception is thrown when trying to send to a closed MailboxAddress, or when reading from a Mailbox, and the MailBoxHandler is managing a private address that has closed.
 class MailboxClosedException
          This exception is thrown when trying to receive from a closed Mailbox.
 class MailboxInUseException
          This exception is thrown when trying to send to register a mailbox under a name, and that name is already used.
 class NoSuchMailboxException
          This exception is thrown when trying to send to register a mailbox under a name, and that name is already used.
 

Uses of IOException in com.sun.squawk.peripheral
 

Subclasses of IOException in com.sun.squawk.peripheral
 class InsufficientFlashMemoryException
           
 

Methods in com.sun.squawk.peripheral that throw IOException
 INorFlashSector[] INorFlashSectorAllocator.getInitialSectors(int purpose)
           
 

Constructors in com.sun.squawk.peripheral that throw IOException
SimulatedNorFlashSector(String fileName)
           
 

Uses of IOException in com.sun.squawk.security.verifier
 

Methods in com.sun.squawk.security.verifier that throw IOException
static void SignatureVerifier.verify(byte[] buffer, byte[] signature)
          Verifies a buffer
static void SignatureVerifier.verifySuite(InputStream suiteIn)
          Verifies a suite in flash memory.
static void SignatureVerifier.verifySuite(InputStream suiteIn, boolean useNativeSHA)
          Verifies a suite in flash memory using either the java Signature or a native read from flash and sha1 code.
static void SignatureVerifier.verifySuite(String uri)
          Verifies a suite in flash memory.
 

Uses of IOException in com.sun.squawk.util
 

Methods in com.sun.squawk.util that throw IOException
 String LineReader.readLine()
          Read a line of text.
 Vector LineReader.readLines(Vector v)
          Read all the lines from the input stream and add them to a given Vector.
 

Uses of IOException in java.io
 

Subclasses of IOException in java.io
 class EOFException
          Signals that an end of file or end of stream has been reached unexpectedly during input.
 class InterruptedIOException
          Signals that an I/O operation has been interrupted.
 class UnsupportedEncodingException
          The Character Encoding is not supported.
 class UTFDataFormatException
          Signals that a malformed UTF-8 string has been read in a data input stream or by any class that implements the data input interface.
 

Methods in java.io that throw IOException
 int DataInputStream.available()
          Returns the number of bytes that can be read from this input stream without blocking.
 int InputStream.available()
          Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
 void ByteArrayInputStream.close()
          Closes this input stream and releases any system resources associated with the stream.
 void ByteArrayOutputStream.close()
          Closes this output stream and releases any system resources associated with this stream.
 void DataInputStream.close()
          Closes this input stream and releases any system resources associated with the stream.
 void DataOutputStream.close()
          Closes this output stream and releases any system resources associated with the stream.
 void InputStream.close()
          Closes this input stream and releases any system resources associated with the stream.
 void InputStreamReader.close()
          Close the stream.
 void OutputStream.close()
          Closes this output stream and releases any system resources associated with this stream.
 void OutputStreamWriter.close()
          Close the stream.
abstract  void Reader.close()
          Close the stream.
abstract  void Writer.close()
          Close the stream, flushing it first.
 void DataOutputStream.flush()
          Flushes this data output stream.
 void OutputStream.flush()
          Flushes this output stream and forces any buffered output bytes to be written out.
 void OutputStreamWriter.flush()
          Flush the stream.
abstract  void Writer.flush()
          Flush the stream.
 void InputStreamReader.mark(int readAheadLimit)
          Mark the present position in the stream.
 void Reader.mark(int readAheadLimit)
          Mark the present position in the stream.
 int DataInputStream.read()
          Reads the next byte of data from this input stream.
abstract  int InputStream.read()
          Reads the next byte of data from the input stream.
 int InputStreamReader.read()
          Read a single character.
 int Reader.read()
          Read a single character.
 int DataInputStream.read(byte[] b)
          See the general contract of the read method of DataInput.
 int InputStream.read(byte[] b)
          Reads some number of bytes from the input stream and stores them into the buffer array b.
 int DataInputStream.read(byte[] b, int off, int len)
          Reads up to len bytes of data from this input stream into an array of bytes.
 int InputStream.read(byte[] b, int off, int len)
          Reads up to len bytes of data from the input stream into an array of bytes.
 int Reader.read(char[] cbuf)
          Read characters into an array.
 int InputStreamReader.read(char[] cbuf, int off, int len)
          Read characters into a portion of an array.
abstract  int Reader.read(char[] cbuf, int off, int len)
          Read characters into a portion of an array.
 boolean DataInput.readBoolean()
          Reads one input byte and returns true if that byte is nonzero, false if that byte is zero.
 boolean DataInputStream.readBoolean()
          See the general contract of the readBoolean method of DataInput.
 byte DataInput.readByte()
          Reads and returns one input byte.
 byte DataInputStream.readByte()
          See the general contract of the readByte method of DataInput.
 char DataInput.readChar()
          Reads an input char and returns the char value.
 char DataInputStream.readChar()
          See the general contract of the readChar method of DataInput.
 double DataInput.readDouble()
          Reads a 64 bit double.
 double DataInputStream.readDouble()
          Reads a 64 bit double.
 float DataInput.readFloat()
          Reads a 32 bit float.
 float DataInputStream.readFloat()
          Reads a 32 bit float.
 void DataInput.readFully(byte[] b)
          Reads some bytes from an input stream and stores them into the buffer array b.
 void DataInputStream.readFully(byte[] b)
          See the general contract of the readFully method of DataInput.
 void DataInput.readFully(byte[] b, int off, int len)
          Reads len bytes from an input stream.
 void DataInputStream.readFully(byte[] b, int off, int len)
          See the general contract of the readFully method of DataInput.
 int DataInput.readInt()
          Reads four input bytes and returns an int value.
 int DataInputStream.readInt()
          See the general contract of the readInt method of DataInput.
 long DataInput.readLong()
          Reads eight input bytes and returns a long value.
 long DataInputStream.readLong()
          See the general contract of the readLong method of DataInput.
 short DataInput.readShort()
          Reads two input bytes and returns a short value.
 short DataInputStream.readShort()
          See the general contract of the readShort method of DataInput.
 int DataInput.readUnsignedByte()
          Reads one input byte, zero-extends it to type int, and returns the result, which is therefore in the range 0 through 255.
 int DataInputStream.readUnsignedByte()
          See the general contract of the readUnsignedByte method of DataInput.
 int DataInput.readUnsignedShort()
          Reads two input bytes and returns an int value in the range 0 through 65535.
 int DataInputStream.readUnsignedShort()
          See the general contract of the readUnsignedShort method of DataInput.
 String DataInput.readUTF()
          Reads in a string that has been encoded using a modified UTF-8 format.
 String DataInputStream.readUTF()
          See the general contract of the readUTF method of DataInput.
static String DataInputStream.readUTF(DataInput in)
          Reads from the stream in a representation of a Unicode character string encoded in Java modified UTF-8 format; this string of characters is then returned as a String.
 boolean InputStreamReader.ready()
          Tell whether this stream is ready to be read.
 boolean Reader.ready()
          Tell whether this stream is ready to be read.
 void DataInputStream.reset()
          Repositions this stream to the position at the time the mark method was last called on this input stream.
 void InputStream.reset()
          Repositions this stream to the position at the time the mark method was last called on this input stream.
 void InputStreamReader.reset()
          Reset the stream.
 void Reader.reset()
          Reset the stream.
 long DataInputStream.skip(long n)
          Skips over and discards n bytes of data from the input stream.
 long InputStream.skip(long n)
          Skips over and discards n bytes of data from this input stream.
 long InputStreamReader.skip(long n)
          Skip characters.
 long Reader.skip(long n)
          Skip characters.
 int DataInput.skipBytes(int n)
          Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes.
 int DataInputStream.skipBytes(int n)
          See the general contract of the skipBytes method of DataInput.
 void DataOutput.write(byte[] b)
          Writes to the output stream all the bytes in array b.
 void OutputStream.write(byte[] b)
          Writes b.length bytes from the specified byte array to this output stream.
 void DataOutput.write(byte[] b, int off, int len)
          Writes len bytes from array b, in order, to the output stream.
 void DataOutputStream.write(byte[] b, int off, int len)
          Writes len bytes from the specified byte array starting at offset off to the underlying output stream.
 void OutputStream.write(byte[] b, int off, int len)
          Writes len bytes from the specified byte array starting at offset off to this output stream.
 void Writer.write(char[] cbuf)
          Write an array of characters.
 void OutputStreamWriter.write(char[] cbuf, int off, int len)
          Write a portion of an array of characters.
abstract  void Writer.write(char[] cbuf, int off, int len)
          Write a portion of an array of characters.
 void DataOutput.write(int b)
          Writes to the output stream the eight low-order bits of the argument b.
 void DataOutputStream.write(int b)
          Writes the specified byte (the low eight bits of the argument b) to the underlying output stream.
abstract  void OutputStream.write(int b)
          Writes the specified byte to this output stream.
 void OutputStreamWriter.write(int c)
          Write a single character.
 void Writer.write(int c)
          Write a single character.
 void Writer.write(String str)
          Write a string.
 void OutputStreamWriter.write(String str, int off, int len)
          Write a portion of a string.
 void Writer.write(String str, int off, int len)
          Write a portion of a string.
 void DataOutput.writeBoolean(boolean v)
          Writes a boolean value to this output stream.
 void DataOutputStream.writeBoolean(boolean v)
          Writes a boolean to the underlying output stream as a 1-byte value.
 void DataOutput.writeByte(int v)
          Writes to the output stream the eight low- order bits of the argument v.
 void DataOutputStream.writeByte(int v)
          Writes out a byte to the underlying output stream as a 1-byte value.
 void DataOutput.writeChar(int v)
          Writes a char value, which is comprised of two bytes, to the output stream.
 void DataOutputStream.writeChar(int v)
          Writes a char to the underlying output stream as a 2-byte value, high byte first.
 void DataOutput.writeChars(String s)
          Writes every character in the string s, to the output stream, in order, two bytes per character.
 void DataOutputStream.writeChars(String s)
          Writes a string to the underlying output stream as a sequence of characters.
 void DataOutput.writeDouble(double v)
          Writes a 64 bit double.
 void DataOutputStream.writeDouble(double v)
          Writes a 64 bit double.
 void DataOutput.writeFloat(float v)
          Writes a 32 bit float.
 void DataOutputStream.writeFloat(float v)
          Writes a 32 bit float.
 void DataOutput.writeInt(int v)
          Writes an int value, which is comprised of four bytes, to the output stream.
 void DataOutputStream.writeInt(int v)
          Writes an int to the underlying output stream as four bytes, high byte first.
 void DataOutput.writeLong(long v)
          Writes an long value, which is comprised of four bytes, to the output stream.
 void DataOutputStream.writeLong(long v)
          Writes a long to the underlying output stream as eight bytes, high byte first.
 void DataOutput.writeShort(int v)
          Writes two bytes to the output stream to represent the value of the argument.
 void DataOutputStream.writeShort(int v)
          Writes a short to the underlying output stream as two bytes, high byte first.
 void DataOutput.writeUTF(String str)
          Writes two bytes of length information to the output stream, followed by the Java modified UTF representation of every character in the string s.
 void DataOutputStream.writeUTF(String str)
          Writes a string to the underlying output stream using UTF-8 encoding in a machine-independent manner.
 

Uses of IOException in javax.microedition.io
 

Subclasses of IOException in javax.microedition.io
 class ConnectionNotFoundException
          This class is used to signal that a connection target cannot be found.
 

Methods in javax.microedition.io that throw IOException
 StreamConnection StreamConnectionNotifier.acceptAndOpen()
          Returns a StreamConnection that represents a server side socket connection.
 void Connection.close()
          Close the connection.
 long HttpConnection.getDate()
          Returns the value of the date header field.
 long HttpConnection.getExpiration()
          Returns the value of the expires header field.
 String HttpConnection.getHeaderField(int n)
          Gets a header field value by index.
 String HttpConnection.getHeaderField(String name)
          Returns the value of the named header field.
 long HttpConnection.getHeaderFieldDate(String name, long def)
          Returns the value of the named field parsed as date.
 int HttpConnection.getHeaderFieldInt(String name, int def)
          Returns the value of the named field parsed as a number.
 String HttpConnection.getHeaderFieldKey(int n)
          Gets a header field key by index.
 long HttpConnection.getLastModified()
          Returns the value of the last-modified header field.
 int DatagramConnection.getMaximumLength()
          Get the maximum length a datagram can be.
 int DatagramConnection.getNominalLength()
          Get the nominal length of a datagram.
 int HttpConnection.getResponseCode()
          Returns the HTTP response status code.
 String HttpConnection.getResponseMessage()
          Gets the HTTP response message, if any, returned along with the response code from a server.
 Datagram DatagramConnection.newDatagram(byte[] buf, int size)
          Make a new datagram object.
 Datagram DatagramConnection.newDatagram(byte[] buf, int size, String addr)
          Make a new datagram object.
 Datagram DatagramConnection.newDatagram(int size)
          Make a new datagram object automatically allocating a buffer.
 Datagram DatagramConnection.newDatagram(int size, String addr)
          Make a new datagram object.
static Connection Connector.open(String name)
          Create and open a Connection.
static Connection Connector.open(String name, int mode)
          Create and open a Connection.
static Connection Connector.open(String name, int mode, boolean timeouts)
          Create and open a Connection.
 DataInputStream InputConnection.openDataInputStream()
          Open and return a data input stream for a connection.
static DataInputStream Connector.openDataInputStream(String name)
          Create and open a connection input stream.
 DataOutputStream OutputConnection.openDataOutputStream()
          Open and return a data output stream for a connection.
static DataOutputStream Connector.openDataOutputStream(String name)
          Create and open a connection output stream.
 InputStream InputConnection.openInputStream()
          Open and return an input stream for a connection.
static InputStream Connector.openInputStream(String name)
          Create and open a connection input stream.
 OutputStream OutputConnection.openOutputStream()
          Open and return an output stream for a connection.
static OutputStream Connector.openOutputStream(String name)
          Create and open a connection output stream.
 void DatagramConnection.receive(Datagram dgram)
          Receive a datagram.
 void DatagramConnection.send(Datagram dgram)
          Send a datagram.
 void Datagram.setAddress(String addr)
          Set datagram address.
 void HttpConnection.setRequestMethod(String method)
          Set the method for the URL request, one of: GET POST HEAD are legal, subject to protocol restrictions.
 void HttpConnection.setRequestProperty(String key, String value)
          Sets the general request property.
 


SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.