You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2011/09/12 11:56:58 UTC

svn commit: r1169671 - /chemistry/site/trunk/content/java/examples/example-create-update.mdtext

Author: fmui
Date: Mon Sep 12 09:56:57 2011
New Revision: 1169671

URL: http://svn.apache.org/viewvc?rev=1169671&view=rev
Log:
CMIS-411: Fixed second example

Modified:
    chemistry/site/trunk/content/java/examples/example-create-update.mdtext

Modified: chemistry/site/trunk/content/java/examples/example-create-update.mdtext
URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/examples/example-create-update.mdtext?rev=1169671&r1=1169670&r2=1169671&view=diff
==============================================================================
--- chemistry/site/trunk/content/java/examples/example-create-update.mdtext (original)
+++ chemistry/site/trunk/content/java/examples/example-create-update.mdtext Mon Sep 12 09:56:57 2011
@@ -36,7 +36,7 @@ This example creates a document in the f
     // content
     byte[] content = "Hello World!".getBytes();
     InputStream stream = new ByteArrayInputStream(content);
-    ContentStream contentStream = new ContentStreamImpl(name, content.length, "text/plain", stream);
+    ContentStream contentStream = new ContentStreamImpl(name, BigInteger.valueOf(content.length), "text/plain", stream);
     
     // create a major version
     Document newDoc = parent.createDocument(properties, contentStream, VersioningState.MAJOR);