[appengine-java] Re: 1.4.3 Javadocs? Looking for the FileServiceFactory docs:
I apologize, we neglected to include the JavaDoc for the new File API in the 1.4.3 release. It will be in 1.4.4 but I will look into posting it somewhere temporarily. In the mean time, here is the JavaDoc for the method you asked about: /** * Creates a new empty file in the BlobStore of the specified mime- type and * returns an {@code AppEngineFile} representing the file. The returned * instance will have a {@link AppEngineFile#getFileSystem() file system} of * {@link com.google.appengine.api.files.AppEngineFile.FileSystem#BLOBSTORE * BLOBSTORE}. * * @param mimeType the mime-type of the file to be created. This parameter may *be used to inform the BlobStore of the mime-type for the file. The *mime-type will be returned by the BlobStore in an HTTP response if *the file is requested directly from the BlobStore using the *blob-key. * @param blobInfoUploadedFileName BlobStore will store this name in the *BlobInfo's fileName field. This string will emnot/em be *the {@link AppEngineFile#getNamePart() name} of the returned *{@code AppEngineFile}. It will be returned by the BlobStore in an HTTP *response if the file is requested directly from the BlobStore using *the blob-key. * @return A {@code AppEngineFile} representing the newly created file. * @throws IOException If there is any problem communicating with the backend * system */ AppEngineFile createNewBlobFile(String mimeType, String blobInfoUploadedFileName) throws IOException; On Apr 2, 8:54 am, branflake2267 branflake2...@gmail.com wrote: I'm looking for the new javadocs for FileServiceFactory and didn't see them yet. I wanted to find out what the method parameters were for fileService.createNewBlobFile(param,param)? Is there a parameter for filename? AppEngineFile file = null; try { file = fileService.createNewBlobFile(contentType); } catch (IOException e) { e.printStackTrace(); } Brandon Donnelsonhttp://gwt-examples.googlecode.com -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: 1.4.3 Javadocs? Looking for the FileServiceFactory docs:
Ah, just what I needed. Thanks! Brandon -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: 1.4.3 Javadocs? Looking for the FileServiceFactory docs:
On Sunday, April 3, 2011 12:59:23 PM UTC-4, Mitch Rudominer wrote: I will look into posting it somewhere temporarily. files-javadoc.appspot.com? :-) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: 1.4.3 Javadocs? Looking for the FileServiceFactory docs:
Not sure why I'm getting this error yet. The class exists and is included in the source. Hm? Caused by: java.lang.NoClassDefFoundError: com/google/appengine/api/files/LockException at org.gonevertical.core.server.jdo.data.ThingStuffJdo.getValueFileData(ThingStuffJdo.java:1162) at org.gonevertical.core.server.jdo.data.ThingStuffJdo.convert(ThingStuffJdo.java:657) at org.gonevertical.core.server.jdo.data.ThingStuffJdo.query(ThingStuffJdo.java:540) at org.gonevertical.core.server.db.Db_ThingStuff.getThingStuffsData(Db_ThingStuff.java:36) at org.gonevertical.core.server.db.Db_Thing.getThingStuffData(Db_Thing.java:67) at org.gonevertical.core.server.db.Db_Thing.getThings(Db_Thing.java:54) at org.gonevertical.core.server.RpcCoreServiceImpl.getThings(RpcCoreServiceImpl.java:211) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) ... 30 more Caused by: java.lang.ClassNotFoundException: com.google.appengine.api.files.LockException at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 43 more -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: 1.4.3 Javadocs? Looking for the FileServiceFactory docs:
Oops, war/WEB-INF/libs didn't get 1.4.3 libs, still had the 1.4.2. Remove 1.4.2 libs and replace with 1.4.3. This occurred with change of sdk and some manual stuff I did. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: 1.4.3 Javadocs? Looking for the FileServiceFactory docs:
Just another note: If your reading a file do it in a task! Otherwise you only have ten seconds. Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.