1 package org.apidesign.exceptions.trycatchredo;
4 import javax.swing.Action;
8 * @author Jaroslav Tulach <jtulach@netbeans.org>
10 public final class IOManager {
16 /** Action that can store a text to given URL.
18 * @param where the url to upload the text to
19 * @param what the text to upload
20 * @return action that can be invoked anytime to save the content
22 public static Action createSaveAction(URL where, CharSequence what) {
24 return new SaveAction(where, what);
26 return new SaveActionWithQuery(where, what);