chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1169671 - /chemistry/site/trunk/content/java/examples/example-create-update.mdtext
Date Mon, 12 Sep 2011 09:56:58 GMT
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);



Mime
View raw message