Class StringToUnsignedByteArray

    • Method Detail

      • fire

        public void fire()
                  throws IllegalActionException
        Consume one string token on the input port and output a new array token of integer tokens on the output port. The low byte of each integer is the byte form of one of the characters. The other three bytes of each integer may be 0x000000 or 0xFFFFFF. The first character of the string is copied to the first element of the array, and so on. NOTE: Assumes an 8-bit character set is the default setting for this implementation of Java.
        Specified by:
        fire in interface Executable
        Overrides:
        fire in class AtomicActor<TypedIOPort>
        Throws:
        IllegalActionException - If there is no director. FIXME: Does this method actually check if there is a director?