| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package com.drew.metadata; |
| 22 |
|
| 23 |
import com.drew.lang.annotations.NotNull; |
| 24 |
import java.util.*; |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
public final class ErrorDirectory extends Directory |
| 33 |
{ |
| 34 |
|
| 35 |
public ErrorDirectory() |
| 36 |
{} |
| 37 |
|
| 38 |
public ErrorDirectory(String error) |
| 39 |
{ |
| 40 |
super.addError(error); |
| 41 |
} |
| 42 |
|
| 43 |
@Override |
| 44 |
@NotNull |
| 45 |
public String getName() |
| 46 |
{ |
| 47 |
return "Error"; |
| 48 |
} |
| 49 |
|
| 50 |
@Override |
| 51 |
@NotNull |
| 52 |
protected HashMap<Integer, String> getTagNameMap() |
| 53 |
{ |
| 54 |
return new HashMap<Integer, String>(); |
| 55 |
} |
| 56 |
|
| 57 |
@Override |
| 58 |
@NotNull |
| 59 |
public String getTagName(int tagType) |
| 60 |
{ |
| 61 |
return ""; |
| 62 |
} |
| 63 |
|
| 64 |
@Override |
| 65 |
public boolean hasTagName(int tagType) |
| 66 |
{ |
| 67 |
return false; |
| 68 |
} |
| 69 |
|
| 70 |
@Override |
| 71 |
public void setObject(int tagType, @NotNull Object value) |
| 72 |
{ |
| 73 |
throw new UnsupportedOperationException(String.format("Cannot add value to %s.", ErrorDirectory.class.getName())); |
| 74 |
} |
| 75 |
} |