DataBuffer dataBuffer = image.getData().getDataBuffer();
    private boolean storeToStream (Icon         icon,                                   String       name,                                   OutputStream os)    {        // Safer        if (!(icon instanceof SymbolIcon)) {            logger.warning("Trying to store a non SymbolIcon : " + name);            return false;        }        SymbolIcon symbolIcon = (SymbolIcon) icon;        BufferedImage image = (BufferedImage) symbolIcon.getImage();        DataBuffer dataBuffer = image.getData().getDataBuffer();        // Retrieve proper image width & height values        final int width = ((SymbolIcon) icon).getActualWidth();        final int height = image.getHeight();        PrintWriter out = new PrintWriter(os);        // Parameters        out.printf("name %s%nwidth %d%nheight %d%n", name, width, height);        // Bitmap        for (int y = 0; y < height; y++) {            for (int x = 0; x < width; x++) {                int argb = image.getRGB(x, y);                out.print(encodeARGB(argb));            }            out.println();        }        out.close();        return true;    }