Changeset 8132 in josm for trunk/src/com/drew/metadata/MetadataReader.java
- Timestamp:
- 2015-03-10T01:17:39+01:00 (11 years ago)
- File:
-
- 1 edited
-
trunk/src/com/drew/metadata/MetadataReader.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/MetadataReader.java
r6127 r8132 1 1 /* 2 * Copyright 2002-201 2Drew Noakes2 * Copyright 2002-2015 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 16 16 * More information about this project is available at: 17 17 * 18 * http://drewnoakes.com/code/exif/ 19 * http ://code.google.com/p/metadata-extractor/18 * https://drewnoakes.com/code/exif/ 19 * https://github.com/drewnoakes/metadata-extractor 20 20 */ 21 21 package com.drew.metadata; 22 22 23 import com.drew.lang. BufferReader;23 import com.drew.lang.RandomAccessReader; 24 24 import com.drew.lang.annotations.NotNull; 25 25 26 26 /** 27 * Interface through which all classes responsible for decoding a particular type of metadata may be called. 28 * Note that the data source is not specified on this interface. Instead it is suggested that implementations 29 * take their data within a constructor. Constructors might be overloaded to allow for different sources, such as 30 * files, streams and byte arrays. As such, instances of implementations of this interface would be single-use and 31 * not thread-safe. 27 * Defines an object capable of processing a particular type of metadata from a {@link RandomAccessReader}. 28 * <p> 29 * Instances of this interface must be thread-safe and reusable. 32 30 * 33 * @author Drew Noakes http://drewnoakes.com 31 * @author Drew Noakes https://drewnoakes.com 34 32 */ 35 33 public interface MetadataReader 36 34 { 37 35 /** 38 * Extract metadata from the sourceand merge it intoan existingMetadata object.36 * Extracts metadata from <code>reader</code> and merges it into the specified {@link Metadata} object. 39 37 * 40 * @param reader The readerfrom which the metadata should be extracted.41 * @param metadata The Metadataobject into which extracted values should be merged.38 * @param reader The {@link RandomAccessReader} from which the metadata should be extracted. 39 * @param metadata The {@link Metadata} object into which extracted values should be merged. 42 40 */ 43 public void extract(@NotNull final BufferReader reader, @NotNull final Metadata metadata);41 public void extract(@NotNull final RandomAccessReader reader, @NotNull final Metadata metadata); 44 42 }
Note:
See TracChangeset
for help on using the changeset viewer.
