Code example for ObjectInputStream

Methods: close, readObject

0
    InputStream in = getClass().getResourceAsStream("/org/pentaho/reporting/libraries/fonts/text/generated/grapheme-classification.ser");
    if (in != null)
    { 
      try 
      { 
        final ObjectInputStream oin = new ObjectInputStream(in);
        classificationData = (ByteTable) oin.readObject();
        oin.close();
        in = null;
      } 
      catch(Exception e)
      { 
        logger.warn ("Unable to load the pre-generated classification data.", e);
      } 
      finally 
      { 
        if (in != null)
        { 
          try 
          { 
            in.close();