diff --git a/Source/com/drew/metadata/StringValue.java b/Source/com/drew/metadata/StringValue.java index e9f4ea502..9e458453e 100644 --- a/Source/com/drew/metadata/StringValue.java +++ b/Source/com/drew/metadata/StringValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 Drew Noakes and contributors + * Copyright 2002-2022 Drew Noakes and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,4 +73,9 @@ public String toString(@Nullable Charset charset) return new String(_bytes); } + + public String toString(int index, int count) + { + return new String(_bytes, index, count, _charset != null ? _charset : Charset.defaultCharset()); + } }