Skip to content

About

Decode Java Object Serialization streams (.ser files, ObjectOutputStream output) into a navigable object graph, without running any Java code

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

@skiffyard/javaser

test Documentation release

Decode Java™ Object Serialization streams - what ObjectOutputStream writes, found in .ser files, application project files, caches and RMI payloads - in a Jennifer program, without a JVM and without running any Java code. Objects, arrays, strings, enums, proxies, back-references and custom writeObject / writeExternal data become a graph of numbered nodes to navigate, or a readable tree.

This deck is part of Skiffyard, small community decks for Jennifer.

Documentation

Install

jvc add @skiffyard/javaser

This vendors the deck to vendor/skiffyard/javaser/. Without jvc, unpack the src/ subtree of a release archive (skiffyard-javaser-<version>.tar.gz) there.

Usage

import "@skiffyard/javaser/" as javaser;

def s as javaser.Stream init javaser.decode(fs.readBytes("objects.ser"));
io.printf("%s", javaser.dump($s));

def first as int init javaser.contents($s)[0];
io.printf("%s\n", javaser.className($s, $first));

Requirements

Jennifer 0.28.0 or newer. Pure computation: no network, files only as the caller reads them.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/javaser_test.j     # the test overlay
tools/check-docs.sh                  # docs against the code
tools/pack.sh dist                   # build the release archive

The test streams are written by the JDK: testdata/gen/Fixtures.java writes them, testdata/gen/embed.j embeds them in src/topics/fixtures/streams_test.j.

Trademarks

Java™ is a trademark of Oracle and/or its affiliates; OpenJDK™ is a trademark of Oracle America, Inc. Other product and company names may be trademarks of their respective owners. They are used only to identify the products this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by Oracle.

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <mplx@jennifer-lang.dev>.

tools/check-headers.sh checks every source file's SPDX header against deck.toml.

About

Decode Java Object Serialization streams (.ser files, ObjectOutputStream output) into a navigable object graph, without running any Java code

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors