public String stringValue()
   {
      if (extract == null)
      {
         synchronized (this)
         {
            if (extract == null)
            {
               StringBuilder textExtract = new StringBuilder();
               char[] buffer = new char[1024];
               int len;
               try
               {
                  while ((len = reader.read(buffer)) > -1)
                  {
                     textExtract.append(buffer, 0, len);
                  }
               }
               catch (IOException e)
               {
                  log.warn("Exception reading value for field: " + e.getMessage());
                  log.debug("Dump:", e);
               }
               finally
               {
                  try
                  {
                     reader.close();
                  }
                  catch (IOException e)
                  {
                     log.error(e.getLocalizedMessage(), e);
                  }
               }
               extract = textExtract.toString();
            }
         }
      }
      return extract;
   }
public String stringValue ( ) { if ( extract == null ) { synchronized ( this ) { if ( extract == null ) { StringBuilder textExtract = new StringBuilder ( ) ; char [ ] buffer = new char [ 1024 ] ; int len ; try { while ( ( len = reader . read ( buffer ) ) > - 1 ) { textExtract . append ( buffer , 0 , len ) ; } } catch ( IOException e ) { log . warn ( "Exception reading value for field: " + e . getMessage ( ) ) ; log . debug ( "Dump:" , e ) ; } finally { try { reader . close ( ) ; } catch ( IOException e ) { log . error ( e . getLocalizedMessage ( ) , e ) ; } } extract = textExtract . toString ( ) ; } } } return extract ; }
@return the string value of this field.