001 package com.croftsoft.core.jnlp;
002
003 import java.io.*;
004 import java.net.*;
005
006 /*********************************************************************
007 * Interface for JnlpServicesImpl.
008 *
009 * @version
010 * 2002-12-22
011 * @since
012 * 2002-12-21
013 * @author
014 * <a href="https://www.croftsoft.com/">David Wallace Croft</a>
015 *********************************************************************/
016
017 public interface JnlpServices
018 //////////////////////////////////////////////////////////////////////
019 //////////////////////////////////////////////////////////////////////
020 {
021
022 public static final String IMPL_CLASS_NAME
023 = "com.croftsoft.core.jnlp.JnlpServicesImpl";
024
025 //////////////////////////////////////////////////////////////////////
026 //////////////////////////////////////////////////////////////////////
027
028 public URL createFileContentsURL ( String fileContentsSpec )
029 throws MalformedURLException, UnsupportedOperationException;
030
031 public URL getCodeBase ( )
032 throws UnsupportedOperationException;
033
034 public byte [ ] loadBytesUsingPersistenceService (
035 String fileContentsSpec )
036 throws IOException, UnsupportedOperationException;
037
038 public Serializable loadSerializableUsingPersistenceService (
039 String fileContentsSpec )
040 throws ClassNotFoundException, IOException,
041 UnsupportedOperationException;
042
043 public void saveBytesUsingPersistenceService (
044 String fileContentsSpec,
045 byte [ ] bytes )
046 throws IOException, UnsupportedOperationException;
047
048 public void saveSerializableUsingPersistenceService (
049 String fileContentsSpec,
050 Serializable serializable )
051 throws IOException, UnsupportedOperationException;
052
053 public boolean showDocument ( URL url )
054 throws UnsupportedOperationException;
055
056 //////////////////////////////////////////////////////////////////////
057 //////////////////////////////////////////////////////////////////////
058 }