Tabnine Logo
org.apache.chemistry.opencmis.commons.impl
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.chemistry.opencmis.commons.impl

Best Java code snippets using org.apache.chemistry.opencmis.commons.impl (Showing top 20 results out of 315)

origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

  protected void writeAclXML(Acl acl, CmisVersion cmisVersion, OutputStream out) throws XMLStreamException {
    XMLStreamWriter writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeAcl(writer, cmisVersion, true, acl);
    XMLUtils.endXmlDocument(writer);
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

  @Override
  public void write(OutputStream out) throws Exception {
    XmlSerializer writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeQuery(writer, cmisVersion, query);
    XMLUtils.endXmlDocument(writer);
  }
});
origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

public <E extends Enum<E>> E readEnum(final XMLStreamReader parser, final Class<E> clazz) throws XMLStreamException {
  assert parser != null;
  assert clazz != null;
  return CmisEnumHelper.fromValue(readText(parser), clazz);
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Generates a valid Atom id.
 */
public String generateAtomId(String input) {
  if (input == null) {
    return ID_DUMMY;
  }
  return ID_PREFIX + Base64.encodeBytes(IOUtils.toUTF8Bytes(input));
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

/**
 * Writes a DateTime tag.
 */
public static void write(XmlSerializer writer, String prefix, String namespace, String tag, GregorianCalendar value)
    throws IOException {
  assert writer != null;
  if (value == null) {
    return;
  }
  write(writer, prefix, namespace, tag, DateTimeHelper.formatXmlDateTime(value));
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Closes the Atom content stream.
 */
private void closeAtomContentStream() {
  IOUtils.closeQuietly(atomContentStream);
  atomContentStream = null;
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

  public static <T extends Enum<T>> T getIntEnum(final Map<String, Object> json, final String key,
      final Class<T> clazz) {
    return CmisEnumHelper.fromValue(getInteger(json, key), clazz);
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

public static <T extends Enum<T>> T getEnum(final Map<String, Object> json, final String key,
    final Class<T> clazz) {
  return CmisEnumHelper.fromValue(getString(json, key), clazz);
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

  @Override
  public void write(OutputStream out) throws IOException {
    IOUtils.copy(stream, out);
  }
});
origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

/**
 * Converts a Web Services extension extension into a binding holder.
 */
public static ExtensionsData convertExtensionHolder(javax.xml.ws.Holder<CmisExtensionType> extension) {
  if (extension == null) {
    return null;
  }
  return convert(extension.value);
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

/**
 * Reads all lines from a stream and closes the stream.
 * 
 * @param stream
 *            the input stream
 */
public static String readAllLines(InputStream stream) throws IOException {
  return readAllLines(stream, Integer.MAX_VALUE);
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

/**
 * Reads all lines from a stream, ignores all comments, and closes the
 * stream.
 * 
 * @param stream
 *            the input stream
 */
public static List<String> readAllLinesAsList(InputStream stream) throws IOException {
  return readAllLinesAsList(stream, Integer.MAX_VALUE);
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

/**
 * Suspends encoding of the stream. May be helpful if you need to embed
 * a piece of base64-encoded data in a stream.
 * 
 * @throws java.io.IOException
 *             if there's an error flushing
 * @since 1.5.1
 */
public void suspendEncoding() throws java.io.IOException {
  flushBase64();
  this.suspendEncoding = true;
} // end suspendEncoding
origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

  @Override
  public void write(OutputStream out) throws Exception {
    XMLStreamWriter writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeAcl(writer, cmisVersion, true, acl);
    XMLUtils.endXmlDocument(writer);
  }
});
origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

  @Override
  public void write(OutputStream out) throws Exception {
    XMLStreamWriter writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeQuery(writer, cmisVersion, query);
    XMLUtils.endXmlDocument(writer);
  }
});
origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

/**
 * Writes a DateTime tag.
 */
public static void write(XMLStreamWriter writer, String prefix, String namespace, String tag,
    GregorianCalendar value) throws XMLStreamException {
  assert writer != null;
  if (value == null) {
    return;
  }
  write(writer, prefix, namespace, tag, DateTimeHelper.formatXmlDateTime(value));
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Closes the CMIS content stream.
 */
private void closeCmisContentStream() {
  IOUtils.closeQuietly(cmisContentStream);
  cmisContentStream = null;
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

public <E extends Enum<E>> E readEnum(final XmlPullParser parser, final Class<E> clazz)
    throws XmlPullParserException {
  return CmisEnumHelper.fromValue(readText(parser), clazz);
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

  public static <T extends Enum<T>> T getIntEnum(final Map<String, Object> json, final String key,
      final Class<T> clazz) {
    return CmisEnumHelper.fromValue(getInteger(json, key), clazz);
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

  @Override
  public void write(OutputStream out) throws Exception {
    XmlSerializer writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeAcl(writer, cmisVersion, true, acl);
    XMLUtils.endXmlDocument(writer);
  }
});
org.apache.chemistry.opencmis.commons.impl

Most used classes

  • ContentStreamImpl
    Content stream data implementation.
  • PropertiesImpl
    Properties data implementation.
  • IOUtils
  • ObjectDataImpl
    ObjectData implementation.
  • PropertyIdImpl
    Id property data implementation.
  • RepositoryInfoImpl,
  • ClassLoaderUtil,
  • CollectionsHelper,
  • AccessControlListImpl,
  • CmisExtensionElementImpl,
  • PropertyBooleanImpl,
  • PropertyDecimalDefinitionImpl,
  • PropertyIntegerDefinitionImpl,
  • PropertyIntegerImpl,
  • TypeDefinitionContainerImpl,
  • TypeDefinitionListImpl,
  • JSONObject,
  • ObjectInfoImpl,
  • XMLUtils
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now