| 1 | /* |
| 2 | * Copyright (C) 2018 Steve Ratcliffe. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 3 or |
| 6 | * version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, but |
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 | * General Public License for more details. |
| 12 | */ |
| 13 | package uk.me.parabola.imgfmt; |
| 14 | |
| 15 | /** |
| 16 | * An object that has a size. |
| 17 | * |
| 18 | * It may be the case the the size is only valid at certain points in time. |
| 19 | */ |
| 20 | public interface Sized { |
| 21 | |
| 22 | /** |
| 23 | * Return the size of the file or buffer in bytes. |
| 24 | */ |
| 25 | public long getSize(); |
| 26 | } |