code: public List<String> readList() throws IOException
     {
        InputStream in = PrivilegedFileHelper.fileInputStream(logFile);
        try
        {
           List<String> list = new ArrayList<String>();
           BufferedReader reader = new BufferedReader(new InputStreamReader(in));
           String line;
           while ((line = reader.readLine()) != null)
           {
              if (!line.matches("\\x00++"))
              {
                 list.add(line);
              }
           }
           return list;
  
        }
        finally
        {
           if (in != null)
           {
              try
              {
                 in.close();
              }
              catch (IOException e)
              {
                 LOG.warn("Exception while closing error log: " + e.toString());
              }
           }
        }
     }
docs: Reads the log file .
  
  @throws IOException
  if an error occurs while reading from the log file.