Package com.google.enterprise.connector.common

Examples of com.google.enterprise.connector.common.AlternateContentFilterInputStream


          AlternateContentFilterInputStream.getAlternateContent(
          DocUtils.getOptionalString(document, SpiConstants.PROPNAME_TITLE),
          DocUtils.getOptionalString(document, SpiConstants.PROPNAME_MIMETYPE)),
          false, 2048);

      return new AlternateContentFilterInputStream(
          encodedContentStream, encodedAlternateStream, this);
  }
View Full Code Here


    // The GSA can't handle meta-and-url feeds with no content, so we
    // provide some minimal content of a single space, if none is available.
    // We are only detecting empty content here, not large documents.
    // TODO: Figure out how to handle CONTENT morphing document filters.
    return
        new AlternateContentFilterInputStream(
            new BigEmptyDocumentFilterInputStream(
                (in == null) ? in : new EofFilterInputStream(in),
                Long.MAX_VALUE),
            null);
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.common.AlternateContentFilterInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.