Changeset 6289 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
- Timestamp:
- 2013-10-03T03:41:25+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
r6148 r6289 19 19 import org.openstreetmap.josm.gui.preferences.SourceEntry; 20 20 import org.openstreetmap.josm.tools.ImageProvider; 21 import org.openstreetmap.josm.tools.Utils; 21 22 22 23 abstract public class StyleSource extends SourceEntry { … … 47 48 abstract public void loadStyleSource(); 48 49 50 /** 51 * Returns a new {@code InputStream} to the style source. When finished, {@link #closeSourceInputStream(InputStream)} must be called. 52 * @return A new {@code InputStream} to the style source that must be closed by the caller 53 * @throws IOException if any I/O error occurs. 54 * @see #closeSourceInputStream(InputStream) 55 */ 49 56 abstract public InputStream getSourceInputStream() throws IOException; 57 58 /** 59 * Closes the source input stream previously returned by {@link #getSourceInputStream()} and other linked resources, if applicable. 60 * @param is The source input stream that must be closed 61 * @since 6289 62 * @see #getSourceInputStream() 63 */ 64 public void closeSourceInputStream(InputStream is) { 65 Utils.close(is); 66 } 50 67 51 68 public void logError(Throwable e) {
Note:
See TracChangeset
for help on using the changeset viewer.
