/** * Take a text copy of the contents of the Excerpt without changing it's position. Can be called in the debugger. * * @param excerpt to get text from * @param position the position to get text from * @return up to 1024 bytes as text with `.` replacing special bytes. */ @NotNull private static String asString(@NotNull ExcerptCommon excerpt, long position) { return asString(excerpt, position, 1024); }
/** * Take a text copy of the contents of the Excerpt without changing it's position. Can be called in the debugger. * * @param excerpt to get text from * @param position the position to get text from * @return up to 1024 bytes as text with `.` replacing special bytes. */ @NotNull private static String asString(@NotNull ExcerptCommon excerpt, long position) { return asString(excerpt, position, 1024); }
/** * Take a text copy of the contents of the Excerpt without changing it's position. Can be called in the debugger. * * @param excerpt to get text from * @return 256 bytes as text with `.` replacing special bytes. */ @NotNull public static String asString(@NotNull ExcerptCommon excerpt) { return asString(excerpt, excerpt.position()); }
/** * Take a text copy of the contents of the Excerpt without changing it's position. Can be called in the debugger. * * @param excerpt to get text from * @return 256 bytes as text with `.` replacing special bytes. */ @NotNull public static String asString(@NotNull ExcerptCommon excerpt) { return asString(excerpt, excerpt.position()); }